Skip to content

Commit

Permalink
ci: Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Mar 31, 2024
1 parent 827cc71 commit c4f389b
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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

0 comments on commit c4f389b

Please sign in to comment.