-
Notifications
You must be signed in to change notification settings - Fork 53
38 lines (34 loc) · 1.06 KB
/
build_test_pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Build Dev Image
on:
pull_request:
branches-ignore:
- main
types:
- opened
- synchronize
- ready_for_review
jobs:
run_build_and_push:
uses: ./.github/workflows/build_and_push_image.yml
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
trivy-scans:
if: (github.base_ref == 'develop' || github.base_ref == 'main' ) && github.event.pull_request.merged == false
uses: kbase/.github/.github/workflows/reusable_trivy-scans.yml@main
secrets: inherit
run_unit_tests:
uses: ./.github/workflows/unit_test.yml
needs: run_build_and_push
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run_integration_tests:
uses: ./.github/workflows/integration_test.yml
needs: run_build_and_push
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
NARRATIVE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }}