Skip to content

Cleanup

Cleanup #4039

Workflow file for this run

name: Core Main Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
python-version: [3.7]
steps:
- uses: actions/checkout@v2
# node setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# node cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# node install
- run: yarn install --frozen-lockfile
# node test
- run: yarn i18n
- run: yarn test:ci
# # cypress acceptance tests
# - name: Cypress acceptance tests
# uses: cypress-io/github-action@v1
- name: Cypress acceptance tests
run: yarn ci:cypress:run
# Upload Cypress screenshots
- uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos
# Bundlewatch
- uses: jackyef/bundlewatch-gh-action@master
with:
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}