Repository navigation
70 lines (70 loc) · 2.15 KB
/
Copy pathci.yml
File metadata and controls
70 lines (70 loc) · 2.15 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: ci
# Builds and tests pull requests and protected branches on Windows, the product platform.
# Uses pull_request (not pull_request_target): fork pull requests run without secrets.
on:
pull_request:
branches: [main, 'release/**']
push:
branches: [main, 'release/**']
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
frontend:
name: frontend-checks
runs-on: windows-latest
timeout-minutes: 45
defaults:
run:
shell: pwsh
env:
COREPACK_ENABLE_DOWNLOAD_PROMPT: '0'
NODE_OPTIONS: --max-old-space-size=6144
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 22
package-manager-cache: false
- name: Prepare pnpm
run: |
corepack enable
corepack prepare pnpm@10.6.5 --activate
pnpm --version
- name: Install dependencies
id: install
run: pnpm install --frozen-lockfile
- name: Build SDK
run: pnpm build:sdk
# Separate steps so one failure does not hide the others.
- name: Type-check tests
run: pnpm typecheck:tests
- name: Unit tests
if: ${{ !cancelled() && steps.install.outcome == 'success' }}
env:
OPENTEST_LICENSE_ENVIRONMENT: test
OPENTEST_LICENSE_URL: https://license.invalid
run: pnpm test:run
- name: Check framework boundaries
if: ${{ !cancelled() && steps.install.outcome == 'success' }}
run: pnpm check:boundaries
backend:
name: backend-tests
runs-on: windows-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-java@v6
with:
distribution: zulu
java-version: '21'
cache: maven
- name: Build and test backend
run: mvn -B --no-transfer-progress --fail-at-end '-Dskip.crowdin.download=true' -f apps/backend/pom.xml verify