#1261 Tmp reversal of build.yml to get make release possible

This commit is contained in:
Knut Sveidqvist
2020-02-21 10:00:36 +01:00
parent 89c1853977
commit 348d086c11

View File

@@ -8,7 +8,6 @@ jobs:
strategy:
matrix:
node-version: [10.x, 12.x]
browser: [chrome, firefox]
steps:
- uses: actions/checkout@v1
@@ -20,10 +19,18 @@ jobs:
- name: Install Yarn
run: npm i yarn --global
- name: Install Dependencies
uses: cypress-io/github-action@v1
- name: Cache Node Modules
uses: actions/cache@v1
with:
runTests: false
path: .cache
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
- name: Install Packages
run: |
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
yarn install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Run Build
run: yarn build
@@ -44,34 +51,11 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
- uses: cypress-io/github-action@v1
with:
browser: ${{ matrix.browser }}
group: ${{ matrix.browser }}
headless: true
command-prefix: 'percy exec -- npx'
start: yarn dev
wait-on: 'http://localhost:9000'
install: false
working-directory: cypress
parallel: true
parallelism: 4
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Upload cypress screenshots
uses: actions/upload-artifact@master
with:
name: cypress-screenshots
path: cypress/screenshots
if: failure()
- name: Upload cypress videos
uses: actions/upload-artifact@master
if: always()
with:
name: cypress-videos
path: cypress/videos
# - name: Run E2E Tests
# run: yarn e2e
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
# CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Post Upload Test Results
uses: coverallsapp/github-action@master