Build & Test Workflow #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |