Skip to content

Fritekst felter

Fritekst felter #449

name: "verify: skribenten-web"
on:
pull_request:
branches:
- 'main'
paths:
- .github/workflows/verify-skribenten-web.yaml
- skribenten-web/frontend/**
jobs:
verify:
name: Verify tests, lint and typescript errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: skribenten-web/frontend
- name: Install dependencies
working-directory: skribenten-web/frontend
run: npm ci
- name: Cypress run e2e tests
uses: cypress-io/github-action@v6
with:
working-directory: skribenten-web/frontend
install: false
browser: chrome
component: false
start: npm run dev
- name: Cypress run component tests
uses: cypress-io/github-action@v6
with:
working-directory: skribenten-web/frontend
install: false
browser: chrome
component: true
start: npm run cypress
- name: Run tests
working-directory: skribenten-web/frontend
run: npm run test
- name: Run ESLint
working-directory: skribenten-web/frontend
run: npm run lint
- name: Run stylelint
working-directory: skribenten-web/frontend
run: npm run stylelint
- name: Check for typescript errors
working-directory: skribenten-web/frontend
run: npm run check-types
- name: Upload failed Cypress screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: skribenten-web/frontend/cypress/screenshots