Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Mar 16, 2024
1 parent 37f76e9 commit b1c7ca1
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Workflow
on:
push:
branches:
- master
- dev
pull_request:
types:
- opened
branches:
- '*'
jobs:
lint:
name: Run Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun lint

tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun test
needs: lint

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun run build
needs: tests

0 comments on commit b1c7ca1

Please sign in to comment.