File tree Expand file tree Collapse file tree 2 files changed +68
-81
lines changed Expand file tree Collapse file tree 2 files changed +68
-81
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ lint :
11+ name : Lint
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - uses : oven-sh/setup-bun@v2
17+ with :
18+ bun-version : latest
19+
20+ - uses : actions/cache@v4
21+ with :
22+ path : |
23+ ~/.bun/install/cache
24+ key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
25+ restore-keys : |
26+ ${{ runner.os }}-bun-
27+
28+ - name : Install dependencies
29+ run : bun install
30+
31+ - name : Run lint
32+ run : bun run lint
33+
34+ test :
35+ name : Test on ${{ matrix.os }}
36+ runs-on : ${{ matrix.os }}
37+ strategy :
38+ fail-fast : false
39+ matrix :
40+ os : [ubuntu-latest, macos-latest, windows-latest]
41+
42+ steps :
43+ - uses : actions/checkout@v4
44+
45+ - uses : oven-sh/setup-bun@v2
46+ with :
47+ bun-version : latest
48+
49+ - uses : actions/cache@v4
50+ with :
51+ path : |
52+ ~/.bun/install/cache
53+ key : ${{ matrix.os }}-bun-${{ hashFiles('**/bun.lock') }}
54+ restore-keys : |
55+ ${{ matrix.os }}-bun-
56+
57+ - name : Install dependencies
58+ run : bun install
59+
60+ - name : Run tests
61+ run : bun run test
62+
63+ # - name: Upload coverage reports
64+ # if: matrix.os == 'ubuntu-latest'
65+ # uses: codecov/codecov-action@v4
66+ # with:
67+ # token: ${{ secrets.CODECOV_TOKEN }}
68+ # fail_ci_if_error: true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments