-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 795 Bytes
/
test.yml
File metadata and controls
36 lines (29 loc) · 795 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
on:
pull_request:
push:
branches: ['main', 'dev']
name: CI
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
repository: druidfi/stonehenge
- name: Install and start Stonehenge
run: make up
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Start hakuvahti
run: make fresh
- name: Lint
run: docker compose exec app bash -c "npx biome ci src --reporter=github --colors=off"
- name: Run tests
run: make test-ci
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: NPM Audit
run: docker compose exec app bash -c "npm audit"