-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.03 KB
/
ci.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
40
41
42
name: Build
on: [push]
jobs:
build:
name: Run TestCafe Tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 13.x
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn e2e
- name: Run visual tests
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: yarn visual-test
- name: Generate Reports
if: always()
run: yarn reports
- name: Archive test artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: reports
path: reports
sonarcloud:
name: Run Sonar Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: SonarCloud Scan
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.sonar_key }}