Add script and CI to automatically test backend changes. (#127)

This commit is contained in:
Kavin 2021-11-06 03:57:33 +00:00 committed by GitHub
parent 08cead806d
commit f3ffe6f1e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 101 additions and 0 deletions

21
.github/workflows/docker-build-test.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Docker-Compose Build and Test
on:
push:
paths-ignore:
- "**.md"
pull_request:
jobs:
build-hotspot-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- name: Build Locally
run: docker build . -t 1337kavin/piped:latest
- name: Start Docker-Compose services
run: docker-compose up -d && sleep 5
- name: Run tests
run: ./api-test.sh