-
-
Notifications
You must be signed in to change notification settings - Fork 23
49 lines (38 loc) · 1.11 KB
/
ci.yaml
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
name: Continuous Integration
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Formatting
run: npm run format:check
- name: Build
run: npm run build
- name: Linting
run: npm run lint
- name: Unit tests (common)
run: npx zenfs-test --common
- name: Unit tests (InMemory)
run: npx zenfs-test tests/setup/memory.ts
- name: Unit tests (Overlay+Fetch)
run: npx zenfs-test tests/setup/cow+fetch.ts
- name: Unit tests (contexts)
run: npx zenfs-test tests/setup/context.ts