-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (38 loc) · 927 Bytes
/
tests.yml
File metadata and controls
41 lines (38 loc) · 927 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
# Run tests (e.g. build) on pull requests
name: tests
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
test-build:
runs-on: ubuntu-latest
strategy:
matrix:
bun: ['1.1.43', 'latest']
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ matrix.bun }}-bun-
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun }}
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
# Uncomment this when tests are added
# - name: Run Tests
# run: bun test