Skip to content

Commit 41979d3

Browse files
committed
ci: add please args to fossa check
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
1 parent c9afde9 commit 41979d3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build:
1010
name: FOSSA
1111
runs-on: ubuntu-latest
12+
env:
13+
GOFLAGS: -mod=readonly
14+
PLZ_ARGS: -p
1215

1316
steps:
1417
- name: Set up Go
@@ -19,15 +22,16 @@ jobs:
1922
- name: Set up GOPATH
2023
run: echo "::set-env name=GOPATH::$(go env GOPATH)"
2124

25+
- name: Set Please overrides
26+
run: echo "::set-env name=PLZ_OVERRIDES::build.path:$PATH"
27+
2228
- name: Checkout code
2329
uses: actions/checkout@v2
2430

2531
- name: Build
2632
run: go build ./...
27-
env:
28-
GOFLAGS: -mod=readonly
2933

3034
- name: Analyze
31-
run: ./pleasew run ///pleasings2//tools/misc:fossa -- analyze
35+
run: ./pleasew $PLZ_ARGS run ///pleasings2//tools/misc:fossa -- analyze
3236
env:
3337
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

0 commit comments

Comments
 (0)