szurubooru/.github/workflows/run-unit-tests.yml
2021-09-19 11:01:47 -04:00

16 lines
421 B
YAML

name: run-unit-tests
on: [pull_request]
jobs:
test-server:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build test container
run: |
TAG=$(docker build --target testing -q ./server)
echo "image_tag=${TAG}" >> $GITHUB_ENV
- name: Run unit tests
run: docker run --rm -t ${{ env.image_tag }} --color=no szurubooru/