Modified build.yml

This commit is contained in:
Knut Sveidqvist
2020-02-16 09:40:35 +01:00
parent bf2862f164
commit 5aa07439a8

View File

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