2023-03-16 19:32:44 +01:00
|
|
|
name: Run Integration Tests
|
|
|
|
|
|
|
|
on:
|
2023-04-02 19:45:46 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
2023-03-16 19:32:44 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-28 20:06:57 +02:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
2023-03-16 19:32:44 +01:00
|
|
|
- name: Build Docker Image
|
2023-04-28 20:06:57 +02:00
|
|
|
env:
|
|
|
|
DOCKER_BUILDKIT: '1'
|
2023-03-16 19:32:44 +01:00
|
|
|
run: docker build . -t offen/docker-volume-backup:test
|
2023-04-28 20:06:57 +02:00
|
|
|
|
2023-03-16 19:32:44 +01:00
|
|
|
- name: Run Tests
|
|
|
|
working-directory: ./test
|
|
|
|
run: |
|
2023-04-28 20:06:57 +02:00
|
|
|
# Stop the buildx container so the tests can make assertions
|
|
|
|
# about the number of running containers
|
|
|
|
docker rm -f $(docker ps -aq)
|
2023-03-16 19:32:44 +01:00
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
./test.sh test
|