Refactor provision of on-demand batch computation project and update corresponding workflow file #38
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: Test | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Test build | |
run: docker compose up -d | |
- name: Sleep | |
shell: bash | |
run: sleep 30; | |
- name: Test endpoint with output | |
shell: bash | |
run: curl --write-out '%{http_code}' --output /dev/null --silent localhost:8080/index.php?r=site/health | |
- name: Test endpoint | |
shell: bash | |
run: bash test-call.bash | |
- name: End test | |
run: docker-compose down |