-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 837 Bytes
/
test.yml
File metadata and controls
37 lines (28 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: test
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
name: format + typecheck + test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: ./.github/actions/setup-bun
- name: Configure git identity
run: |
git config --global user.email "ci@frankencode"
git config --global user.name "frankencode-ci"
- name: Format check
run: bun prettier --check "packages/opencode/src/**/*.ts" "packages/plugin/src/**/*.ts"
- name: Typecheck
run: bun turbo typecheck
- name: Unit tests
run: bun turbo test