Skip to content

Commit

Permalink
test: ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tranngoclam authored and Lam Tran committed Aug 22, 2024
1 parent 08ee506 commit af6df54
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,31 @@ jobs:
cache: true
- run: |
go test -v foo/...
test-prepare:
runs-on: ubuntu-latest
outputs:
run: ${{ steps.run.outputs.run }}
steps:
- run: echo "run=true" >> $GITHUB_OUTPUT
id: run

test-1:
runs-on: ubuntu-latest
needs: test-prepare
if: ${{ needs.test-prepare.outputs.run == 'true' }}
steps:
- run: echo 1

test-2:
runs-on: ubuntu-latest
needs: test-prepare
if: ${{ needs.test-prepare.outputs.run == 'false' }}
steps:
- run: echo 2

test-final:
runs-on: ubuntu-latest
needs: [test-prepare, test-1, test-2]
steps:
- run: echo final

0 comments on commit af6df54

Please sign in to comment.