-
Notifications
You must be signed in to change notification settings - Fork 25
89 lines (73 loc) · 1.98 KB
/
ci.yml
File metadata and controls
89 lines (73 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Local CI Gate
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
cache-dependency-path: |
go.sum
sdk/go/go.sum
examples/sdk/go/go.sum
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: tools/requirements.txt
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
cache: maven
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r tools/requirements.txt
- name: Download Go modules
run: |
go mod download
(cd sdk/go && go mod download)
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install web dependencies
working-directory: web
run: npx pnpm@9 install --frozen-lockfile
- name: Install Playwright browsers
working-directory: web
run: npx playwright install --with-deps chromium
- name: Check environment
run: make check-env
- name: Run CI
run: make ci
- name: Run Playwright UI tests
run: |
make quickstart &
for i in $(seq 1 30); do
curl -sf http://localhost:8080/healthz > /dev/null 2>&1 && break
sleep 1
done
cd web && npx playwright test --reporter=list
cd .. && make stop-all