|
4 | 4 | pull_request |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - lint: |
8 | | - concurrency: |
9 | | - group: lint-golangci-${{ github.head_ref || github.ref_name }} |
10 | | - cancel-in-progress: true |
11 | | - runs-on: ubuntu-latest |
12 | | - steps: |
13 | | - - name: checkout |
14 | | - uses: actions/checkout@v3 |
15 | | - - name: setup-go |
16 | | - uses: actions/setup-go@v3 |
17 | | - with: |
18 | | - go-version: '1.20' |
19 | | - - name: golangci-lint |
20 | | - uses: golangci/golangci-lint-action@v2 |
21 | | - with: |
22 | | - version: v1.52.2 |
23 | | - code-format-check: |
24 | | - concurrency: |
25 | | - group: lint-autoformat-${{ github.head_ref || github.ref_name }} |
26 | | - cancel-in-progress: true |
27 | | - runs-on: ubuntu-latest |
28 | | - steps: |
29 | | - - name: checkout |
30 | | - uses: actions/checkout@v3 |
31 | | - - name: setup-go |
32 | | - uses: actions/setup-go@v3 |
33 | | - with: |
34 | | - go-version: '1.20' |
35 | | - - name: Install utilities |
36 | | - run: | |
37 | | - go install mvdan.cc/[email protected] |
38 | | - go install github.com/rinchsan/gosimports/cmd/[email protected] |
39 | | - - name: format all files with auto-formatter |
40 | | - run: bash ./.github/scripts/format-all-go-code.sh "$PWD" |
41 | | - - name: Check repository diff |
42 | | - run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken" |
| 7 | + # lint: |
| 8 | + # concurrency: |
| 9 | + # group: lint-golangci-${{ github.head_ref || github.ref_name }} |
| 10 | + # cancel-in-progress: true |
| 11 | + # runs-on: ubuntu-latest |
| 12 | + # steps: |
| 13 | + # - name: checkout |
| 14 | + # uses: actions/checkout@v3 |
| 15 | + # - name: setup-go |
| 16 | + # uses: actions/setup-go@v3 |
| 17 | + # with: |
| 18 | + # go-version: '1.20' |
| 19 | + # - name: golangci-lint |
| 20 | + # uses: golangci/golangci-lint-action@v2 |
| 21 | + # with: |
| 22 | + # version: v1.52.2 |
| 23 | + # code-format-check: |
| 24 | + # concurrency: |
| 25 | + # group: lint-autoformat-${{ github.head_ref || github.ref_name }} |
| 26 | + # cancel-in-progress: true |
| 27 | + # runs-on: ubuntu-latest |
| 28 | + # steps: |
| 29 | + # - name: checkout |
| 30 | + # uses: actions/checkout@v3 |
| 31 | + # - name: setup-go |
| 32 | + # uses: actions/setup-go@v3 |
| 33 | + # with: |
| 34 | + # go-version: '1.20' |
| 35 | + # - name: Install utilities |
| 36 | + # run: | |
| 37 | + # go install mvdan.cc/[email protected] |
| 38 | + # go install github.com/rinchsan/gosimports/cmd/[email protected] |
| 39 | + # - name: format all files with auto-formatter |
| 40 | + # run: bash ./.github/scripts/format-all-go-code.sh "$PWD" |
| 41 | + # - name: Check repository diff |
| 42 | + # run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken" |
43 | 43 | run-unit-tests: |
44 | 44 | concurrency: |
45 | 45 | group: run-unit-tests-${{ github.head_ref || github.ref_name }} |
46 | 46 | cancel-in-progress: true |
47 | 47 | runs-on: ubuntu-latest |
48 | | - outputs: |
49 | | - result: ${{ steps.run-unit-tests.outputs.result }} |
50 | 48 | steps: |
51 | 49 | - name: checkout |
52 | 50 | uses: actions/checkout@v3 |
|
87 | 85 | needs: |
88 | 86 | - run-unit-tests |
89 | 87 | runs-on: ubuntu-latest |
90 | | - outputs: |
91 | | - result: ${{ steps.run-e2e-tests.outputs.result }} |
92 | 88 | steps: |
93 | 89 | - name: Maximize build space |
94 | 90 | uses: AdityaGarg8/[email protected] |
|
0 commit comments