|
| 1 | +# |
| 2 | +# DO NOT EDIT THIS FILE |
| 3 | +# |
| 4 | +# It is automatically copied from https://github.com/pion/.goassets repository. |
| 5 | +# If this repository should have package specific CI config, |
| 6 | +# remove the repository name from .goassets/.github/workflows/assets-sync.yml. |
| 7 | +# |
| 8 | +# If you want to update the shared CI config, send a PR to |
| 9 | +# https://github.com/pion/.goassets instead of this repository. |
| 10 | +# |
| 11 | +# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> |
| 12 | +# SPDX-License-Identifier: MIT |
| 13 | + |
1 | 14 | name: Lint
|
2 | 15 | on:
|
3 |
| - push: |
4 |
| - branches: |
5 |
| - - master |
6 | 16 | pull_request:
|
7 |
| - branches: |
8 |
| - - master |
9 |
| - schedule: |
10 |
| - - cron: "0 0 * * 1" |
11 |
| - |
12 | 17 |
|
13 | 18 | jobs:
|
14 |
| - lint-commit-message: |
15 |
| - name: Metadata |
16 |
| - runs-on: ubuntu-latest |
17 |
| - steps: |
18 |
| - - uses: actions/checkout@v3 |
19 |
| - with: |
20 |
| - fetch-depth: 0 |
21 |
| - - name: Checkout .goassets |
22 |
| - uses: actions/checkout@v3 |
23 |
| - with: |
24 |
| - repository: pion/.goassets |
25 |
| - path: ${{ github.workspace }}/.github/.goassets |
26 |
| - ref: ${{ inputs.goassets-ref }} |
27 |
| - |
28 |
| - - name: Commit Message |
29 |
| - run: .github/.goassets/scripts/lint-commit-message.sh |
30 |
| - |
31 |
| - - name: File names |
32 |
| - run: .github/.goassets/scripts/lint-filename.sh |
33 |
| - |
34 |
| - - name: Logging messages should not have trailing newlines |
35 |
| - run: .github/.goassets/scripts/lint-no-trailing-newline-in-log-messages.sh |
36 |
| - |
37 |
| - - name: Go version in go.mod |
38 |
| - run: .github/.goassets/scripts/lint-go-mod-version.sh |
39 |
| - |
40 |
| - lint-go: |
41 |
| - name: Go |
42 |
| - runs-on: ubuntu-latest |
43 |
| - permissions: |
44 |
| - contents: read |
45 |
| - pull-requests: read |
46 |
| - steps: |
47 |
| - - uses: actions/checkout@v3 |
48 |
| - |
49 |
| - - uses: actions/setup-go@v4 |
50 |
| - with: |
51 |
| - go-version: 'stable' |
52 |
| - |
53 |
| - - name: Update packages |
54 |
| - run: sudo apt-get update |
55 |
| - |
56 |
| - - name: Install GStreamer |
57 |
| - run: | |
58 |
| - sudo apt-get purge -y libunwind-14-dev |
59 |
| - sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev |
60 |
| -
|
61 |
| - - name: Build data-channels |
62 |
| - run: cd c-data-channels && make |
63 |
| - |
64 |
| - - name: golangci-lint |
65 |
| - uses: golangci/golangci-lint-action@v3 |
66 |
| - with: |
67 |
| - version: v1.52.2 |
| 19 | + lint: |
| 20 | + uses: pion/.goassets/.github/workflows/lint.reusable.yml@master |
0 commit comments