Skip to content

Commit 65a2bfb

Browse files
reusable action for typescript client compat check. (#6163)
Tenkt brukt frå build pipeline for k9-sak (og muligens k9-klage) for å sjekke at k9-sak-web kompilerer med ny typescript klient versjon før publisering av endringer til prod. Co-authored-by: Hallvard Andreas Stark <[email protected]>
1 parent d26c636 commit 65a2bfb

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Check compat typescript client
2+
==============================
3+
4+
Denne action er meint brukt frå build pipelines i feks k9-sak, til å sjekke at ny generert typescript klient pakke er kompatibel med noverande (master) k9-sak-web kode.
5+
6+
Dette slik at endringer i backend som sannynligvis vil føre til feil i frontend blir oppdaga før utrulling til produksjon.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check compat typescript client
2+
description: Check if current k9-sak-web compiles with new typescript client package.
3+
inputs:
4+
readerToken:
5+
description: The secrets.READER_TOKEN allowing read of internal packages.
6+
required: true
7+
newClientPath:
8+
description: The filepath to where the new client package has been put
9+
required: true
10+
11+
runs:
12+
using: composite
13+
steps:
14+
- name: Sjekk ut k9-sak-web
15+
uses: actions/checkout@v4
16+
with:
17+
repository: navikt/k9-sak-web
18+
# Klargjer for kompilering
19+
- uses: ./.github/actions/setup-install
20+
with:
21+
npmAuthToken: ${{ inputs.readerToken }}
22+
# Link inn ny klient pakke (allereie på plass frå steg før denne action blir kalla)
23+
- run: yarn link ${{ inputs.newClientPath }}
24+
shell: bash
25+
# Køyr ts-check
26+
- run: yarn ts-check
27+
shell: bash

0 commit comments

Comments
 (0)