Skip to content

Commit

Permalink
Don't deploy if the tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
getkey committed Aug 29, 2024
1 parent e702c2b commit 6d9939f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ on:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.3'
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn cucumber
env:
DOCKER_HOST: unix:///var/run/docker.sock
build:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -30,9 +42,11 @@ jobs:
cache-to: type=gha,mode=max
deploy:
runs-on: ubuntu-latest
needs: build
needs:
- build
- test
timeout-minutes: 30
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: GCP auth
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/ci.yaml

This file was deleted.

0 comments on commit 6d9939f

Please sign in to comment.