-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 880 Bytes
/
ci.yml
File metadata and controls
37 lines (35 loc) · 880 Bytes
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
name: CI
on:
pull_request:
push:
branches:
- master
- "releases/**"
jobs:
lint-test-build:
name: "Lint, tests and build"
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: "package.json"
cache: "npm"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint and format
run: npm run ci:lint-format
- name: Run coverage
run: npm run coverage
- name: Build
run: npm run build
- name: Audit
run: npm run audit
- name: Sonar scan
if: github.actor != 'dependabot[bot]'
uses: SonarSource/sonarqube-scan-action@v7
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}