diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1cc6d97 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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