-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) Β· 964 Bytes
/
test.yml
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
name: π§ͺ Tests
on:
# https://blog.esciencecenter.nl/reduce-reuse-recycle-save-the-planet-one-github-action-at-a-time-4ab602255c3f
push:
paths:
- 'patches/**'
- 'src/**'
- 'tests/**'
- '.bun-version'
- 'package.json'
- 'bun.lock'
- 'tsconfig.json'
pull_request:
paths:
- 'patches/**'
- 'src/**'
- 'tests/**'
- '.bun-version'
- 'package.json'
- 'bun.lock'
- 'tsconfig.json'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: π₯ Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: π§ Setup Bun
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
with:
bun-version-file: ".bun-version"
- name: π¦ Install dependencies
run: bun install --frozen-lockfile
- name: π§ͺ Run tests
run: bun run test