File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
+
3
+ name : Tests
4
+
5
+ on :
6
+ push :
7
+ branches : [ "main" ]
8
+ pull_request :
9
+ # we use devlop branch for now before publishing the website
10
+ branches : [ "main", "develop" ]
11
+
12
+ jobs :
13
+ quality :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Harden Runner
17
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
18
+ with :
19
+ egress-policy : audit
20
+
21
+ - name : Checkout
22
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23
+ - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
24
+ with :
25
+ node-version-file : ' .nvmrc'
26
+ - name : Setup Biome
27
+ uses : biomejs/setup-biome@c016c38f26f2c4a6eb3662679143614a254263fd # v2.3.0
28
+ with :
29
+ version : latest
30
+ - name : Run Biome
31
+ run : biome ci .
32
+ - name : Check types
33
+ run : node --run types:check
34
+
35
+ test :
36
+ runs-on : ubuntu-latest
37
+ needs : quality
38
+ # node --run test:unit
39
+ steps :
40
+ - name : Harden Runner
41
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
42
+ with :
43
+ egress-policy : audit
44
+
45
+ - name : Checkout
46
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
+ - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
48
+ with :
49
+ node-version-file : ' .nvmrc'
50
+ - name : Run Tests
51
+ run : node --run test:unit
You can’t perform that action at this time.
0 commit comments