-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.16 KB
/
pr-build.yaml
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: PR Test Build
on:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
# - name: Check spelling
# run: npm run spell
#
# - name: Test
# run: npm run test
- name: Build
run: npm run build
# - name: Edit Path
# run: |
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
# - name: SonarCloud scan
# uses: SonarSource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}