-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.34 KB
/
ci.yml
File metadata and controls
54 lines (47 loc) · 1.34 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
# github-action "test-runner"
#
# - triggered on label creation
# - runs-on "ubuntu-latest" github action VM
# - starts services (docker container)
# 1. x0-app:latest from ghcr.io
# 2. x0-db:latest from ghcr.io
# 3. selenium-server-0 from docker hub
# - runs
# 1. x0-test-github:latest from ghcr.io (test executer)
name: x0-test-runner
permissions:
contents: read
packages: read
# run only on current-release branch
on:
push:
branches:
- current-release
# run jobs
jobs:
# test runner job
test-runner-job:
runs-on: ubuntu-latest
name: test-runner
container:
image: ghcr.io/webcodex1/x0-test-github:latest
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
services:
# x0-app apache/wsgi using hostname x0-app.x0.localnet
x0-app.x0.localnet:
image: ghcr.io/webcodex1/x0-app:latest
# x0-db container using hostname mypostgres
mypostgres:
image: ghcr.io/webcodex1/x0-db:latest
# selenium-server container using hostname selenium-server-0
selenium-server-0:
image: selenium/standalone-chrome:latest
# start tests inside test-container
steps:
- name: sleep for 20 seconds
run: sleep 20s
shell: bash
- name: run tests
run: /var/lib/x0/sys/docker-run-pytest.sh