Skip to content

Commit

Permalink
enabled test for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathew-alex committed May 23, 2022
1 parent 7d03029 commit 286827d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,21 @@ env:
EKS_CLUSTER_NAME: ${{ secrets.AWS_EKS_CLUSTER_NAME }}

jobs:
# test:
# runs-on: ubuntu-latest
# name: Test
# steps:
# - uses: actions/checkout@v2
test:
runs-on: ubuntu-latest
name: Test
if: github.event_name == 'pull_request' && github.event.action == 'opened'
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 . --file Dockerfile
# fi
- 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 . --file Dockerfile
fi
build-dockerhub-staging:
# needs: test
name: Build & Push to Dockerhub
Expand Down

0 comments on commit 286827d

Please sign in to comment.