-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1 KB
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Cypress e2e tester
on:
pull_request:
branches:
- main
release:
types: [released]
env:
APP: spinntektsmelding-frontend
IMAGE: ghcr.io/${{ github.repository }}/spinntektsmelding-frontend:${{ github.sha }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
jobs:
install:
name: Install an run Cypress tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: '22.6'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- run: yarn install --immutable
- name: Cypress run
uses: cypress-io/github-action@v6
with:
project: .
browser: chrome
build: yarn build
start: yarn dev:decoratorless
wait-on: 'http://localhost:3000/im-dialog/cypress-test'