-
Notifications
You must be signed in to change notification settings - Fork 9
73 lines (62 loc) 路 1.73 KB
/
Copy pathmain.yml
File metadata and controls
73 lines (62 loc) 路 1.73 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
name: quality checks
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- src/**.ts
- package.json
- tsconfig.json
- .github/workflows/**.yml
permissions:
contents: read
pull-requests: write
actions: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: install
run: bun install
- name: build
run: bun run build
- name: bunfig.toml
shell: bash
run: |
cat > "${GITHUB_WORKSPACE}/bunfig.toml" <<'EOF'
[test]
coveragePathIgnorePatterns = [
"example/**",
"build/**",
"src/types.ts",
"tests/**",
"src/runtime/decorators.ts"
]
EOF
- name: test
run: bun run test
- name: upload coverage artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
if-no-files-found: warn
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: install
run: bun install
- name: lint
run: bun run lint