Skip to content

Add changes for 5.0.12 #191

Add changes for 5.0.12

Add changes for 5.0.12 #191

Workflow file for this run

name: RunTests
on: [push, pull_request]
jobs:
test_frontend:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['12', '14', '16', '17']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: |
npm install
- name: Run format
run: |
npm run format
- name: Run eslint
run: |
npm run eslint
- name: Run tests
run: |
npm run test
test_e2e:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['14', '16']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install npm dependencies
run: |
npm install
- name: Install playwright dependencies
run: |
npx playwright install --with-deps chromium
- name: Run e2e tests
run: |
npm run teste2e
deploy_frontend:
strategy:
matrix:
os: [ubuntu-latest]
node: ['16']
runs-on: ${{ matrix.os }}
needs: [test_frontend, test_e2e]
steps:
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node }}-node-production-${{ hashFiles('**/package-lock.json') }}
- name: Install npm dependencies
run: |
npm install --production
- name: Build
run: |
npm run build
- name: Publish to Github Pages
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_PAGES_TOKEN }}
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.