Skip to content

Commit 9bf9a3c

Browse files
committed
make build dependable on tests success
1 parent b351014 commit 9bf9a3c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ env:
2020
IMAGE_NAME: ${{ github.repository }}
2121

2222
jobs:
23+
tests:
24+
uses: ./.github/workflows/run_tests.yml
25+
secrets:
26+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
27+
2328
build:
29+
needs: tests
2430
runs-on: ubuntu-latest
2531
permissions:
2632
contents: read

.github/workflows/run_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
push:
1212
pull_request:
1313
branches: [develop, main, 'release/**']
14+
workflow_call:
15+
secrets:
16+
codecov_token:
17+
required: true
1418
workflow_dispatch:
1519

1620
concurrency:

0 commit comments

Comments
 (0)