Skip to content

Commit

Permalink
refactor: refactoring pipeline file
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeversiane committed Jun 9, 2024
1 parent 30768e7 commit 87e4414
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
Expand All @@ -40,16 +40,15 @@ jobs:
security:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

- name: Run Snyk to check for Go vulnerabilities
uses: snyk/actions/golang@master
with:
args: --severity-threshold=critical


test:
needs: build
needs: [build, security]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand All @@ -68,10 +67,12 @@ jobs:
- name: Run E2E tests
run: go test -v ./e2e/...

- if: failure()
- name: Print Docker Compose status if failure
if: failure()
run: docker-compose -f docker-compose.ci.yml ps

- if: failure()
- name: Print Docker Compose logs if failure
if: failure()
run: docker-compose -f docker-compose.ci.yml logs

- name: Tear Down
Expand Down

0 comments on commit 87e4414

Please sign in to comment.