-
-
Notifications
You must be signed in to change notification settings - Fork 24
67 lines (51 loc) · 1.98 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Continuous Integration
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
pull_request:
permissions:
checks: write
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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: Create checks
run: npx zenfs-ci --create Formatting Build Linting "Unit tests (common)" "Unit tests (InMemory)" "Unit tests (contexts)" "Unit tests (Index)" "Unit tests (Port)" "Unit tests (Overlay+Fetch)"
- name: Formatting
run: npx zenfs-ci Formatting -R "npm run format:check"
- name: Build
run: npx zenfs-ci Build -R "npm run build"
- name: Linting
run: npx zenfs-ci Linting -R "npm run lint"
- name: Unit tests (common)
run: npx zenfs-test -pfw --common --ci "Unit tests (common)"
- name: Unit tests (InMemory)
run: npx zenfs-test -pfw tests/setup/memory.ts --ci "Unit tests (InMemory)"
- name: Unit tests (contexts)
run: npx zenfs-test -pfw tests/setup/context.ts --ci "Unit tests (contexts)"
- name: Unit tests (Index)
run: npx zenfs-test -pfw tests/setup/index.ts --ci "Unit tests (Index)"
- name: Unit tests (Port)
run: npx zenfs-test -pfw tests/setup/port.ts --ci "Unit tests (Port)"
- name: Unit tests (Overlay+Fetch)
run: tests/fetch/run.sh -w --ci "Unit tests (Overlay+Fetch)"
- name: Report coverage
run: npx zenfs-test --report