Optimize database support #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |