-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1004 Bytes
/
Copy pathci.yml
File metadata and controls
47 lines (38 loc) · 1004 Bytes
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
name: CI
on:
pull_request:
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
check:
name: Lint, format, type-check, test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.13
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run check (lint + format + type-check)
run: bun run check
- name: Run tests
run: bun run test
- name: Upload test artefacts on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: ci-failure-logs
path: |
**/*.log
**/test-results/**
if-no-files-found: ignore
retention-days: 7