Skip to content

Commit f8daee3

Browse files
workflow: introduce ci (#16)
1 parent 4a0f07f commit f8daee3

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
steps:
39+
- name: Harden Runner
40+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
41+
with:
42+
egress-policy: audit
43+
44+
- name: Checkout
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
47+
with:
48+
node-version-file: '.nvmrc'
49+
- name: Run Tests
50+
run: node --run test:unit

0 commit comments

Comments
 (0)