-
-
Notifications
You must be signed in to change notification settings - Fork 6
29 lines (25 loc) · 627 Bytes
/
main.yml
File metadata and controls
29 lines (25 loc) · 627 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
name: Build & Test
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: install
run: npm install --frozen-lockfile
- run: npm run build
- name: SonarCloud Scan
if: env.SONAR_TOKEN != null
uses: SonarSource/sonarcloud-github-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}