File tree Expand file tree Collapse file tree 3 files changed +4
-59
lines changed Expand file tree Collapse file tree 3 files changed +4
-59
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
- check_docs_only :
10
- name : check_docs_only
11
- runs-on : ubuntu-18.04
12
- outputs :
13
- skip : ${{ steps.check_docs_only.outputs.skip }}
14
- steps :
15
- - uses : actions/checkout@v3
16
- with :
17
- fetch-depth : 0
18
- - id : check_docs_only
19
- # Since PR's are squashed prior to merging to the branch checked out (default branch),
20
- # HEAD^ will resolve to the previous point in history.
21
- run : |
22
- REF="HEAD^"
23
- [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
24
- echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
25
-
26
9
go-apidiff :
27
10
name : Verify API differences
28
11
runs-on : ubuntu-latest
29
- needs : check_docs_only
30
12
# Pull requests from different repository only trigger this checks
31
- if : (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) && needs.check_docs_only.outputs.skip != 'true'
13
+ if : (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
32
14
steps :
33
15
- name : Clone the code
34
16
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
- check_docs_only :
10
- name : check_docs_only
11
- runs-on : ubuntu-18.04
12
- outputs :
13
- skip : ${{ steps.check_docs_only.outputs.skip }}
14
- steps :
15
- - uses : actions/checkout@v3
16
- with :
17
- fetch-depth : 0
18
- - id : check_docs_only
19
- # Since PR's are squashed prior to merging to the branch checked out (default branch),
20
- # HEAD^ will resolve to the previous point in history.
21
- run : |
22
- REF="HEAD^"
23
- [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
24
- echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
25
-
26
9
lint :
27
10
name : golangci-lint
28
11
runs-on : ubuntu-latest
29
- needs : check_docs_only
30
12
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
31
- if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && needs.check_docs_only.outputs.skip != 'true'
13
+ if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
32
14
steps :
33
15
- name : Setup Go
34
16
uses : actions/setup-go@v4
Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
- check_docs_only :
10
- name : check_docs_only
11
- runs-on : ubuntu-18.04
12
- outputs :
13
- skip : ${{ steps.check_docs_only.outputs.skip }}
14
- steps :
15
- - uses : actions/checkout@v3
16
- with :
17
- fetch-depth : 0
18
- - id : check_docs_only
19
- # Since PR's are squashed prior to merging to the branch checked out (default branch),
20
- # HEAD^ will resolve to the previous point in history.
21
- run : |
22
- REF="HEAD^"
23
- [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2)
24
- echo "::set-output name=skip::$(test/check-docs-only.sh $REF)"
25
-
26
9
test :
27
10
name : ${{ matrix.os }}
28
11
runs-on : ${{ matrix.os }}
31
14
os :
32
15
- ubuntu-latest
33
16
- macos-latest
34
- needs : check_docs_only
35
17
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
36
- if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && needs.check_docs_only.outputs.skip != 'true'
18
+ if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
37
19
steps :
38
20
- name : Clone the code
39
21
uses : actions/checkout@v3
61
43
name : Code coverage
62
44
needs :
63
45
- test
64
- - check_docs_only
65
46
runs-on : ubuntu-latest
66
47
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
67
- if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && needs.check_docs_only.outputs.skip != 'true'
48
+ if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
68
49
steps :
69
50
- name : Clone the code
70
51
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments