ci: add commit lint workflow on PR to main branch #3
Workflow file for this run
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: CI Build | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: | |
- "**" | |
# - main | |
# - master | |
# - trunk | |
tags: | |
- "!**" | |
# Run every time a PR is updated | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
- id: setup-bun | |
name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- id: install-deps | |
name: Install dependencies | |
run: | | |
bun install | |
- id: test | |
name: Run tests | |
run: | | |
bun test |