Fix BASEHREF handling in Docker Compose #157
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: tests | |
on: | |
push: | |
# branches: [ dependency-updates ] | |
# branches: [ master, main, development] | |
branches-ignore: | |
- master | |
- main | |
- development | |
pull_request: | |
branches: [ master, main, development] | |
workflow_dispatch: | |
jobs: | |
test-all: | |
runs-on: ubuntu-latest | |
services: | |
dockerdind: | |
image: docker:20.10.7 | |
options: --privileged | |
ports: | |
- 2375:2375 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and run tests | |
run: | | |
docker compose -f docker-compose.yml -f docker-compose.test.yml build | |
docker compose -f docker-compose.yml -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from web | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
files: ./coverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Remove Docker containers | |
if: always() | |
run: docker compose -f docker-compose.yml -f docker-compose.test.yml down | |