Skip to content

Merge branch 'dependabot/npm_and_yarn/next-logger-5.0.0' of github.co… #1412

Merge branch 'dependabot/npm_and_yarn/next-logger-5.0.0' of github.co…

Merge branch 'dependabot/npm_and_yarn/next-logger-5.0.0' of github.co… #1412

name: test.pleiepenger-sykt-barn
on:
push:
branches-ignore:
- 'main'
paths:
- 'apps/pleiepenger-sykt-barn/**/*'
- 'nais-config/**/*'
- 'packages/**/*'
- '.github/workflows/test.pleiepenger-sykt-barn.yml'
- yarn.lock
workflow_call:
env:
APP_NAME: 'pleiepenger-sykt-barn'
jobs:
run-script-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .yarnrc.yml
run: |
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.navikt.npmAlwaysAuth true
yarn config set npmScopes.navikt.npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies (yarn)
run: yarn
- name: Run code tests
run: yarn test --filter=@navikt/pleiepenger-sykt-barn
run-playwright-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .yarnrc.yml
run: |
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.navikt.npmAlwaysAuth true
yarn config set npmScopes.navikt.npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
- name: Build application
run: yarn build --filter=@navikt/pleiepenger-sykt-barn
- name: Run tests
run: yarn turbo playwright-test --filter=@navikt/pleiepenger-sykt-barn