-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.06 KB
/
lint-tscheck-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Lint, typescript-sjekk og bygg
on:
push:
branches:
- 'TSFF-271-reusable-actions'
workflow_call:
inputs:
run-build:
required: false
type: boolean
default: false
jobs:
lint-tscheck-build:
name: Lint, typescript-sjekk og bygg
runs-on: ubuntu-latest
steps:
- name: Hente kode
uses: actions/checkout@v4
- uses: ./.github/actions/setup-yarnrc
with:
npmAuthToken: ${{ secrets.READER_TOKEN }}
- name: Sette opp Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Installere dependencies
run: HUSKY=0 yarn install --immutable
- name: Typescript-sjekk
run: yarn ts-check
- name: Eslint
run: yarn lint
- name: Css modules typegenerator check
run: yarn css:modules:typegen:check
- name: CSS-lint
run: yarn css:lint
- name: Sjekker at koden bygger
if: ${{inputs.run-build}}
run: yarn build
timeout-minutes: 30