-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (48 loc) · 1.15 KB
/
test.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
41
42
43
44
45
46
47
48
49
50
51
name: Pogues Test CI
on:
push:
branches:
- '**'
tags:
- '*'
jobs:
test-build:
name: Test & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 15
- run: yarn
# Run tests & build sonar reports
- run: yarn test
# Build lib
- run: yarn build
- name: Upload deploy artifact
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage/
- name: Upload deploy artifact
uses: actions/upload-artifact@v2
with:
name: build
path: build/
sonarcloud:
runs-on: ubuntu-latest
needs: test-build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download coverage artifact
uses: actions/download-artifact@v2
with:
name: coverage
path: coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}