✨ add workflows for testing and linting
This commit is contained in:
parent
435d0e941b
commit
ab73d68c28
|
|
@ -0,0 +1,11 @@
|
|||
name: On Pull Request
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
lint:
|
||||
uses: ./.github/workflows/run-linter.yml
|
||||
test:
|
||||
uses: ./.github/workflows/run-tests.yml
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
name: Run Linter
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
|
||||
- run: bun install
|
||||
- run: bun lint
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
name: Run Tests
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
|
||||
- run: bun install
|
||||
- run: bun test
|
||||
Loading…
Reference in New Issue