-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (56 loc) · 1.74 KB
/
Copy pathintegration.yml
File metadata and controls
70 lines (56 loc) · 1.74 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: Integration Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
integration:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
XDG_RUNTIME_DIR: /tmp/podman-run
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install podman
run: |
sudo apt-get update
sudo apt-get install -y podman
- name: Start podman socket service
run: |
# Ensure the runtime directory exists and is writable
mkdir -p "$XDG_RUNTIME_DIR/podman"
# Start the rootless podman service socket in the configured runtime dir
podman system service --time=0 unix://$XDG_RUNTIME_DIR/podman/podman.sock >/tmp/podman-service.log 2>&1 &
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up uv
uses: astral-sh/setup-uv@v4
with:
python-version: '3.11'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/interactEM/package-lock.json
- name: Install frontend dependencies
working-directory: frontend/interactEM
run: |
npm ci
npx playwright install --with-deps
- name: Start docker compose
run: make setup && make docker-up
- name: Run integration test suite
run: make integration-test
- name: Show docker compose logs on failure
if: failure()
run: docker compose logs --no-color