fix: package.json & package-lock.json to reduce vulnerabilities #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |