Modified build.yml

This commit is contained in:
Knut Sveidqvist 2020-02-16 09:40:35 +01:00
parent bf2862f164
commit 5aa07439a8
1 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [12.x]
steps:
- uses: actions/checkout@v1
@ -32,9 +32,14 @@ jobs:
env:
CYPRESS_CACHE_FOLDER: ../../.cache/Cypress
- name: Install cypress
run: cypress install
env:
CYPRESS_CACHE_FOLDER: ../../.cache/Cypress
- name: Run Build
run: yarn build
- name: Upload Build as Artifact
uses: actions/upload-artifact@v1
with:
@ -44,7 +49,7 @@ jobs:
- name: Run Unit Tests
run: |
yarn test --coverage
- name: Upload Test Results
uses: coverallsapp/github-action@v1.0.1
with:
@ -56,7 +61,7 @@ jobs:
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Post Upload Test Results
uses: coverallsapp/github-action@master
with: