-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (92 loc) · 3.78 KB
/
Copy pathpr.yml
File metadata and controls
101 lines (92 loc) · 3.78 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Pull Request
on:
pull_request:
types: [opened, synchronize]
branches: # Target Branches
- main
- release/*
- release-next
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
modified-files:
runs-on: ubuntu-latest
outputs:
docker-unit-required: ${{ steps.filter.outputs.docker-unit }}
helm-integration-required: ${{ steps.filter.outputs.helm-integration }}
helm-unit-required: ${{ steps.filter.outputs.helm-unit }}
steps:
- uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
docker-unit:
- '.github/workflows/test-docker.yml'
- 'docker/common-services.yaml'
- 'docker/internal-auth/**'
- 'docker/legacy-auth/**'
- 'tests/fixtures/docker/**'
- 'tests/integration/compose/**'
- 'tests/unit/compose/**'
helm-integration:
- '.github/workflows/test-integration-helm.yml'
- 'helm/fiftyone-teams-app/**'
- 'tests/fixtures/helm/**'
- 'tests/integration/helm/**'
- 'tests/unit/helm/**'
helm-unit:
- '.github/workflows/test-helm.yml'
- 'helm/fiftyone-teams-app/**'
- 'tests/fixtures/helm/**'
- 'tests/integration/helm/**'
- 'tests/unit/helm/**'
docker-unit:
needs: modified-files
if: ${{ needs.modified-files.outputs.docker-unit-required == 'true' }}
uses: ./.github/workflows/test-docker.yml
secrets:
FO_INTERNAL_LICENSE: ${{ secrets.FO_INTERNAL_LICENSE }}
FO_LEGACY_LICENSE: ${{ secrets.FO_LEGACY_LICENSE }}
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
helm-integration:
needs: modified-files
if: ${{ needs.modified-files.outputs.helm-integration-required == 'true' }}
uses: ./.github/workflows/test-integration-helm.yml
secrets:
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
helm-unit:
needs: modified-files
if: ${{ needs.modified-files.outputs.helm-unit-required == 'true' }}
uses: ./.github/workflows/test-helm.yml
secrets:
ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
validate-chart-version:
# Always run check, even if no helm changes.
uses: ./.github/workflows/validate-chart-version.yml
all-tests:
runs-on: ubuntu-latest
needs: [docker-unit, helm-unit, helm-integration, validate-chart-version]
if: always()
steps:
- run: sh -c ${{
(needs.docker-unit.result == 'success' || needs.docker-unit.result == 'skipped') &&
(needs.helm-integration.result == 'success' || needs.helm-integration.result == 'skipped') &&
(needs.helm-unit.result == 'success' || needs.helm-unit.result == 'skipped') &&
(needs.validate-chart-version.result == 'success') }}
helm-pre-release:
needs: [all-tests, helm-unit, helm-integration, validate-chart-version]
if: |
always() &&
(needs.helm-unit.result == 'success' &&
needs.helm-integration.result == 'success' &&
needs.validate-chart-version.result == 'success')
uses: ./.github/workflows/pre-release-internal-env.yml
secrets:
REPO_GOOGLE_WORKLOAD_IDP: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
WD_HCI_FG_PAT: ${{ secrets.WD_HCI_FG_PAT }}
CROSS_REPOSITORY_REPOSITORY: ${{ secrets.CROSS_REPOSITORY_REPOSITORY }}
CROSS_REPOSITORY_WORKFLOW: ${{ secrets.CROSS_REPOSITORY_WORKFLOW }}