From d6daa45d0b2ded8bacff6413899e6d48248d0329 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 25 Aug 2020 11:46:13 +0100 Subject: [PATCH] update test workflow --- .github/workflows/cli.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 1ce2fbfc4..70da2fbeb 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -9,10 +9,18 @@ jobs: steps: - uses: actions/checkout@v2 - # Build the CLI - name: Build CLI - run: npm run build-cli + run: | + cd packaging + npm install + npm run build-cli - # Upload an empty SARIF file - name: Upload with CLI - 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 }} + run: | + node packaging/dist/code-scanning-cli-linux 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 }}