-
Notifications
You must be signed in to change notification settings - Fork 616
42 lines (36 loc) · 1 KB
/
nodejs.yml
File metadata and controls
42 lines (36 loc) · 1 KB
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
41
42
# Name of workflow
name: Node CI
# Trigger the workflow on push or pull request
on:
- push
- pull_request
env:
CI: true
jobs:
build:
# The type of machine to run the job on
runs-on: ubuntu-latest
strategy:
# Node versions list
matrix:
node-version: [24.x]
steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v6
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
# https://github.com/actions/setup-node
uses: actions/setup-node@v6
# The Node.js version to configure
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: make install
- run: make lint
- run: make test-coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v7
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}