-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 979 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: AST Azure wrapper CI
on: [pull_request]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16
uses: actions/[email protected]
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
node-version: 16
- 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