ci: Add CI workflow #1
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Setup Node and Bun | |
uses: jdx/mise-action@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Format | |
run: bun run format:check | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Setup Node and Bun | |
uses: jdx/mise-action@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Lint | |
run: bun run lint | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Setup Node and Bun | |
uses: jdx/mise-action@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Test | |
run: bun run test | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Setup Node and Bun | |
uses: jdx/mise-action@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Build | |
run: bun run build |