-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.04 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
name: CI - Test Suite
on:
pull_request:
branches:
- '**'
jobs:
test:
name: Test on ${{ matrix.os }} with Node.js ${{ matrix.node-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [18, 20, 22]
include:
- node-version: '22'
os: ubuntu-latest
coverage: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Run tests
run: bun run test
- name: Test with coverage
if: ${{ matrix.coverage }}
run: bun run test:cov
- name: Upload coverage
uses: coverallsapp/github-action@v2
if: ${{ matrix.coverage }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}