-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (31 loc) · 927 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"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc # v1
with:
bun-version: 1.0.1
- name: Cache node_modules
id: cache-npm-packages
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
env:
cache-name: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('bun.lockb') }}
- name: Install Dependencies
if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: bun install
- name: Build
run: bun run build
- name: Test
run: bun run test