Skip to content

Gå mot gcp-versjon av veilarbportefolje #2347

Gå mot gcp-versjon av veilarbportefolje

Gå mot gcp-versjon av veilarbportefolje #2347

Workflow file for this run

name: Install, build, run Cypress on PR
on: pull_request
jobs:
cypress-run:
name: Install, build, run Cypress tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Build application
run: npm run build:mock
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: false
browser: chrome
start: npm start
wait-on: http://localhost:3000
wait-on-timeout: 90
record: false
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots