Skip to content

Merge pull request #95 from artiphishle/93-update-tabs-splitter #72

Merge pull request #95 from artiphishle/93-update-tabs-splitter

Merge pull request #95 from artiphishle/93-update-tabs-splitter #72

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
# Matrix builds allow to test the code against multiple versions of Node.s or on multiple operating systems in parallel.
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategy
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
lint:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run eslint
run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm test
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run server and Cypress tests
run: |
npm run build
npm start &
sleep 10
npm run test:e2e
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}