-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 886 Bytes
/
test.yml
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
name: Release
on:
pull_request:
types: [opened, synchronize]
push:
branches: [main]
jobs:
build:
permissions:
contents: read
packages: read
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/[email protected]
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm run test:ci
- name: notify sonarqube
if: ${{ github.event_name == 'push' }}
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}