This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
Mikrofrontend til pakker #387
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validere pull request Inntektsmelding | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- 'packages/inntektsmelding/**/*' | |
- 'yarn.lock' | |
env: | |
package-name: '@navikt/k9-fe-inntektsmelding' | |
jobs: | |
valid-pull-request: | |
name: Validere pull request | |
runs-on: ubuntu-latest | |
steps: | |
- name: Hente kode | |
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 $NPM_AUTH_TOKEN | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- name: Sette opp Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
- name: Installere dependencies | |
run: yarn install --immutable | |
- name: Bygg k9-frontend-modules | |
run: yarn build-frontend-modules | |
- name: Kjøre linter | |
run: yarn lerna run lint --scope ${{env.package-name}} | |
- name: Valider typescript | |
run: yarn lerna run ts-check --scope ${{env.package-name}} | |
- name: Kjøre enhetstester | |
run: yarn lerna run test --scope ${{env.package-name}} | |
- name: Kjøre bygg | |
run: yarn lerna run build --scope ${{env.package-name}} |