Skip to content

Commit 02ee188

Browse files
authored
Split licenses check into a separate test target. (#17)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
1 parent a7f810b commit 02ee188

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ on:
2626

2727
jobs:
2828

29+
licenses:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Check licenses
36+
run: |
37+
go get -u github.com/google/addlicense
38+
export PATH=$PATH:$(go env GOPATH)/bin
39+
addlicense -check .
40+
2941
stable:
3042
runs-on: ubuntu-latest
3143

@@ -53,12 +65,6 @@ jobs:
5365
- name: Format (manifest)
5466
run: cargo verify-project
5567

56-
- name: Format (addlicense)
57-
run: |
58-
go get -u github.com/google/addlicense
59-
export PATH=$PATH:$(go env GOPATH)/bin
60-
addlicense -check .
61-
6268
- name: Package (docs)
6369
run: cargo doc --no-deps --target=wasm32-unknown-unknown
6470

@@ -92,12 +98,6 @@ jobs:
9298
- name: Format (manifest)
9399
run: cargo +nightly verify-project
94100

95-
- name: Format (addlicense)
96-
run: |
97-
go get -u github.com/google/addlicense
98-
export PATH=$PATH:$(go env GOPATH)/bin
99-
addlicense -check .
100-
101101
- name: Package (docs)
102102
run: cargo +nightly doc --no-deps --target=wasm32-unknown-unknown
103103

0 commit comments

Comments
 (0)