-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (73 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
93 lines (73 loc) · 1.99 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup mise (node + bun)
uses: jdx/mise-action@v4
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test test/
- name: Generate coverage report
run: bun test test/ --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit-tests
continue-on-error: true
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup mise (node + bun)
uses: jdx/mise-action@v4
- name: Install dependencies
run: bun install
- name: Build binary
run: bun run build
- name: Verify build output
shell: bash
run: |
if [ ! -f asana ]; then
echo "Build failed: asana binary not found"
exit 1
fi
chmod +x asana
./asana --version
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup mise (node + bun)
uses: jdx/mise-action@v4
- name: Install dependencies
run: bun install
- name: Run ESLint
run: bun run lint
link-check:
name: Markdown Link Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup mise (node + markdown-link-check)
uses: jdx/mise-action@v4
# Reuse the same hk.pkl globs/excludes as the local pre-commit hook so the
# check is identical everywhere. hk isn't in mise.toml [tools] (no Intel-Mac
# binary), so install it on the fly here (CI runs linux).
- name: Check markdown links
run: mise exec hk@1.48.0 -- hk check --all