77 pull_request :
88
99jobs :
10- lint :
11- name : Lint
10+ test :
11+ name : Test
1212 runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ go : ['1.11', '1.12', '1.13', '1.14', '1.15']
1316 env :
1417 GOFLAGS : -mod=readonly
1518 GOPROXY : https://proxy.golang.org
@@ -19,20 +22,32 @@ jobs:
1922 - name : Set up Go
2023 uses : actions/setup-go@v2
2124 with :
22- go-version : 1.15
25+ go-version : ${{ matrix.go }}
26+
27+ - name : Set Please overrides
28+ run : echo "::set-env name=PLZ_OVERRIDES::build.path:$PATH"
2329
2430 - name : Checkout code
2531 uses : actions/checkout@v2
2632
27- - name : Lint
28- run : ./pleasew $PLZ_ARGS lint
33+ - name : Build
34+ run : ./pleasew $PLZ_ARGS build //...
2935
30- test :
31- name : Test
36+ - name : Test
37+ run : |
38+ ./pleasew $PLZ_ARGS test //...
39+ ./pleasew $PLZ_ARGS gotest
40+
41+ - name : Upload coverage
42+ uses : codecov/codecov-action@v1
43+ if : always()
44+ with :
45+ token : ${{ secrets.CODECOV_TOKEN }}
46+ file : plz-out/log/coverage.txt
47+
48+ lint :
49+ name : Lint
3250 runs-on : ubuntu-latest
33- strategy :
34- matrix :
35- go : ['1.11', '1.12', '1.13', '1.14', '1.15']
3651 env :
3752 GOFLAGS : -mod=readonly
3853 GOPROXY : https://proxy.golang.org
@@ -42,17 +57,13 @@ jobs:
4257 - name : Set up Go
4358 uses : actions/setup-go@v2
4459 with :
45- go-version : ${{ matrix.go }}
60+ go-version : 1.15
61+
62+ - name : Set Please overrides
63+ run : echo "::set-env name=PLZ_OVERRIDES::build.path:$PATH"
4664
4765 - name : Checkout code
4866 uses : actions/checkout@v2
4967
50- - name : Test
51- run : ./pleasew $PLZ_ARGS gotest
52-
53- - name : Upload coverage
54- uses : codecov/codecov-action@v1
55- if : always()
56- with :
57- token : ${{ secrets.CODECOV_TOKEN }}
58- file : plz-out/log/coverage.txt
68+ - name : Lint
69+ run : ./pleasew $PLZ_ARGS lint
0 commit comments