Skip to content

Uploading coverage report to the pipeline artifacts (AST-79400) #970

Uploading coverage report to the pipeline artifacts (AST-79400)

Uploading coverage report to the pipeline artifacts (AST-79400) #970

Workflow file for this run

name: AST Azure wrapper CI
on: [pull_request]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4.0.3
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
node-version: 20
- name: Authenticate with GitHub package registry
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- name: npm install
run: |
npm install
cd cxAstScan/
npm install
- name: Code Linting
run: npm run lint
- run: npm run build
- name: Run tests
env:
CX_CLIENT_ID: ${{ secrets.CX_CLIENT_ID }}
CX_CLIENT_SECRET: ${{ secrets.CX_CLIENT_SECRET }}
CX_BASE_URI: ${{ secrets.CX_BASE_URI }}
CX_TENANT: ${{ secrets.CX_TENANT }}
CX_API_KEY: ${{ secrets.CX_API_KEY }}
run: npm run coverage
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./coverage