-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (32 loc) · 916 Bytes
/
bun-test.yml
File metadata and controls
40 lines (32 loc) · 916 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
# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Bun Test
on:
pull_request:
push:
branches:
- main
- '!version-bumps/**'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
# Skip test for PRs that not chore: bump version
if: "${{ github.event_name != 'pull_request' || github.event.pull_request.title != 'chore: bump version' }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test
- name: Upload snapshot artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: test-snapshots
path: tests/**/__snapshots__/*.diff.png
if-no-files-found: ignore