36 lines
No EOL
963 B
YAML
36 lines
No EOL
963 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
pull_request:
|
|
# cancel in-progress runs on new commits to same PR (gitub.event.number)
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
Check:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version-file: .tool-versions
|
|
run_install: true
|
|
- run: bun run --filter "./packages/*" check
|
|
|
|
Tests:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version-file: .tool-versions
|
|
run_install: true
|
|
- run: bun run --filter "./packages/*" test |