Skip to content

Commit d6daa45

Browse files
update test workflow
1 parent 0bb8872 commit d6daa45

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/cli.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111

12-
# Build the CLI
1312
- name: Build CLI
14-
run: npm run build-cli
13+
run: |
14+
cd packaging
15+
npm install
16+
npm run build-cli
1517
16-
# Upload an empty SARIF file
1718
- name: Upload with CLI
18-
run: node cli/code-scanning-cli.js upload --sarif-file src/testdata/empty-sarif.sarif --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_API_URL --github-auth ${{ github.token }}
19+
run: |
20+
node packaging/dist/code-scanning-cli-linux upload \
21+
--sarif-file src/testdata/empty-sarif.sarif \
22+
--repository $GITHUB_REPOSITORY \
23+
--commit $GITHUB_SHA \
24+
--ref $GITHUB_REF \
25+
--github-url $GITHUB_API_URL \
26+
--github-auth ${{ github.token }}

0 commit comments

Comments
 (0)