-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 969 Bytes
/
test.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
name: Build and test
run-name: Build and test from trigger ${{ github.event_name }}
on: [workflow_call, push, pull_request]
env:
CI: true
TZ: Europe/Oslo
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: 'read'
packages: 'read'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@navikt'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build with mock
run: npm run build:mock
- uses: cypress-io/[email protected]
with:
install: false
start: npm run start:with:test
wait-on: 'http://localhost:3100/sendinn/api/isAlive'
config: video=false
config-file: cypress.config.ts