Skip to content

Fjernet ds-datepicker #781

Fjernet ds-datepicker

Fjernet ds-datepicker #781

name: test.endringsmelding-pleiepenger
on:
push:
branches-ignore:
- 'main'
paths:
- 'apps/endringsmelding-pleiepenger/**/*'
- 'nais-config/**/*'
- 'packages/**/*'
- .github/workflows/app.endringsmelding-pleiepenger.yml
- .github/workflows/test.endringsmelding-pleiepenger.yml
workflow_call:
env:
APP_NAME: 'endringsmelding-pleiepenger'
jobs:
run-script-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies (yarn)
run: yarn
- name: Run code tests
run: yarn test --filter=endringsmelding-pleiepenger
run-cypress-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Build and start e2e server
uses: cypress-io/[email protected]
env:
API_URL_INNSYN: http://localhost:8099
API_URL: http://localhost:8099
DEKORATOR_URL: https://www.nav.no/dekoratoren/?simple=true&chatbot=false
PUBLIC_PATH: /familie/sykdom-i-familien/soknad/endringsmelding-pleiepenger
MSW: off
APP_VERSION: dev
FRONTEND_API_PATH: http://localhost:8099/
FRONTEND_VEDLEGG_URL: http://localhost:8099/api
FRONTEND_INNSYN_API_PATH: http://localhost:8099/api
VELG_SAK: off
APPSTATUS_PROJECT_ID: ryujtq87
APPSTATUS_DATASET: staging
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
project: ./apps/endringsmelding-pleiepenger/e2e
build: yarn build-endringsmelding-pleiepenger
start: yarn turbo start-e2e-server --filter=endringsmelding-pleiepenger
wait-on: 'http://localhost:8080/familie/sykdom-i-familien/soknad/endringsmelding-pleiepenger/alive'
wait-on-timeout: 60
runTests: false
- name: Run cypress tests
run: yarn turbo cypress-run --filter=endringsmelding-pleiepenger
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}