Removed github actions test step, as docker build runs tests.

This commit is contained in:
Thirsty2 2020-10-03 15:16:56 -07:00
parent 990e3f61fe
commit 0e35a971ce
1 changed files with 1 additions and 20 deletions

View File

@ -5,6 +5,7 @@ on:
# Publish `master` as Docker `latest` image.
branches:
- master
- Dockerfile-with-github-actions
# Publish `v1.2.3` tags as releases.
tags:
@ -18,29 +19,9 @@ env:
IMAGE_NAME: iverilog
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
if [ -f docker-compose.test.yml ]; then
docker-compose --file docker-compose.test.yml build
docker-compose --file docker-compose.test.yml run sut
else
docker build --build-arg GITHUB_WORKSPACE=$GITHUB_WORKSPACE . --file Dockerfile
fi
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
# Ensure test job passes before pushing image.
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push'