-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.25 KB
/
sonarcloud.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
34
35
36
37
38
39
40
name: Sonarcloud
on:
push:
branches:
- main
pull_request:
jobs:
sonarcloud:
name: Run Sonar scan
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # pin@v3
with:
ref: ${{ inputs.gitRef || github.ref }}
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm install
- name: Generate coverage report
run: npm run test:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@4b4d7634dab97dcee0b75763a54a6dc92a9e6bc1 # pin@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
env:
API_BASE_URL: http://localhost:6000/api
AM_API_BASE_URL: http://localhost:5000/api
GOV_ACCOUNTS_PUBLISHING_API_URL: http://localhost:1000/api
GOV_ACCOUNTS_PUBLISHING_API_TOKEN: token
AM_YOUR_ACCOUNT_URL: some url
OIDC_CLIENT_ID: test
OIDC_CLIENT_SCOPES: openid
SESSION_SECRET: secret
SESSION_EXPIRY: 3600000
SESSION_STORE_TABLE_NAME: account-mgmt-frontend-SessionStore