Skip to content

Update GitHub Actions #2

Update GitHub Actions

Update GitHub Actions #2

Workflow file for this run

name: Lint and Test
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
# https://github.com/actions/setup-node
- name: Use Node.js 14
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Clean install NPM packages from package-lock.json
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test:unit
env:
CI: true
# https://github.com/cypress-io/github-action
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run serve
wait-on: 'http://localhost:8080'