-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1015 Bytes
/
ci.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
name: Continuous integration checks
on: [push]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb', 'bunfig.toml') }}
- name: Install dependencies
run: bun install
- name: Check formatting
run: bun check:format
- name: Build package
run: bun run build
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb', 'bunfig.toml') }}
- name: Install dependencies
run: bun install
- name: Install anvil
uses: foundry-rs/foundry-toolchain@v1
- name: Launch anvil
run: bun anvil &
- name: Run tests
run: bun test