-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 771 Bytes
/
main.yml
File metadata and controls
39 lines (30 loc) · 771 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
name: Build & Test Workflow
# - uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest
on:
push:
branches: [ main, develop ]
tags-ignore: [ v* ]
pull_request:
branches: [ main, develop ]
schedule:
# Runs every day at midnight, to ensure any new versions of Bun don't break the build.
- cron: '0 0 * * *'
jobs:
build:
name: Build Codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Codebase
- uses: oven-sh/setup-bun@v1
name: Setup Bun
with:
bun-version: v1.0.7
- name: Install Dependencies
run: bun install
- name: Build Codebase
run: bun run build
- name: Test Codebase
run: bun test --coverage