-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
52 lines (49 loc) · 1.53 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: pyro_test
POSTGRES_USER: pyro
POSTGRES_PASSWORD: pyro-ci-password
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U pyro -d pyro_test"
--health-interval 5s
--health-timeout 3s
--health-retries 20
env:
TEST_DATABASE_URL: postgresql://pyro:pyro-ci-password@127.0.0.1:5432/pyro_test
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
- run: npm run check
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: PYTHONPATH=sdks/python/src python -m unittest discover -s sdks/python/tests -v
- name: Rust SDK
run: cargo test --locked --manifest-path sdks/rust/Cargo.toml
- name: Validate and build containers
env:
ADMIN_PASSWORD: ci-admin-password-not-for-production
CONTROL_PLANE_SECRET: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
POSTGRES_PASSWORD: 0123456789abcdef0123456789abcdef
GATEWAY_API_KEY: pf_0123456789abcdef0123456789abcdef0123456789abcdef
run: docker compose config --quiet && docker compose build