-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (35 loc) · 1.31 KB
/
test.yml
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
name: Build
on:
workflow_dispatch:
pull_request:
branches: ['master']
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start Spotweb with MySQL
run: docker compose -f ./docker-compose-mysql.yml -p spotwebmysql up --build -d
- name: Wait for Spotweb to respond with 200 OK
uses: cygnetdigital/[email protected]
with:
url: 'http://localhost:8085/'
- name: Stop Spotweb with MySQL
run: docker compose -f ./docker-compose-mysql.yml -p spotwebmysql down --volumes --remove-orphans
# - name: Test Spotweb with PostgreSQL
# uses: adambirds/[email protected]
# with:
# compose-file: './docker-compose-postgres.yml'
# compose-flags: '-p spotwebpostgres'
# up-flags: '--build'
# down-flags: '--volumes --remove-orphans'
# test-command: 'curl http://localhost:8086'
# - name: Test Spotweb with SQLite
# uses: adambirds/[email protected]
# with:
# compose-file: './docker-compose-sqlite.yml'
# compose-flags: '-p spotwebsqlite'
# up-flags: '--build'
# down-flags: '--volumes --remove-orphans'
# test-command: 'curl http://localhost:8087'