Skip to content

Commit 2a23458

Browse files
committed
Bruk reusable setup action i test.yml
1 parent 7a437fe commit 2a23458

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/test.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,10 @@ jobs:
1111
- name: Hente kode
1212
uses: actions/checkout@v4
1313

14-
- name: Setup .yarnrc.yml
15-
run: |
16-
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
17-
yarn config set npmScopes.navikt.npmAlwaysAuth true
18-
yarn config set npmScopes.navikt.npmAuthToken $NPM_AUTH_TOKEN
19-
env:
20-
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
21-
22-
- name: Sette opp Node
23-
uses: actions/setup-node@v4
14+
- name: Setup + Install
15+
uses: ./.github/actions/setup-install
2416
with:
25-
node-version: '18'
26-
cache: 'yarn'
27-
28-
- name: Installere dependencies
29-
run: HUSKY=0 yarn install --immutable
17+
npmAuthToken: ${{ secrets.READER_TOKEN }}
3018

3119
- name: Kjører tester
3220
run: yarn test --silent

0 commit comments

Comments
 (0)