-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.37 KB
/
test.yml
File metadata and controls
47 lines (42 loc) · 1.37 KB
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
38
39
40
41
42
43
44
45
46
47
name: test
on:
push:
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
checks: write
jobs:
typecheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: ./.github/actions/setup-bun
- run: bun turbo typecheck --filter=teamcode --filter=@teamcode-ai/plugin --filter=@teamcode-ai/sdk
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
unit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: ./.github/actions/setup-bun
- name: Configure git identity
run: |
git config --global user.email "bot@teamcode.dev"
git config --global user.name "teamcode"
- name: Run unit tests
run: bun turbo test:ci --filter=teamcode
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
- name: Publish unit reports
if: always()
uses: mikepenz/action-junit-report@bccf2e31636835cf0874589931c4116687171386 # v6.4.0
with:
report_paths: packages/*/.artifacts/unit/junit.xml
check_name: "unit results"
detailed_summary: true
fail_on_failure: false