File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 9
9
workflow_dispatch :
10
10
11
11
permissions :
12
- contents : read
13
12
id-token : write
13
+ # required by testinfra-ami-build dependent workflows
14
+ contents : write
15
+ packages : write
14
16
15
17
jobs :
16
18
build-run-image :
84
86
AWS_ACCESS_KEY_ID : ${{ env.AWS_ACCESS_KEY_ID }}
85
87
AWS_SECRET_ACCESS_KEY : ${{ env.AWS_SECRET_ACCESS_KEY }}
86
88
AWS_SESSION_TOKEN : ${{ env.AWS_SESSION_TOKEN }}
89
+
90
+ run-testinfra :
91
+ needs : build-run-image
92
+ if : ${{ success() }}
93
+ uses : ./.github/workflows/testinfra-ami-build.yml
94
+
95
+ run-tests :
96
+ needs : build-run-image
97
+ if : ${{ success() }}
98
+ uses : ./.github/workflows/test.yml
Original file line number Diff line number Diff line change 1
1
name : Test Database
2
2
on :
3
- # Trigger this workflow when the "Nix CI" workflow completes
4
- workflow_run :
5
- workflows : ["Nix CI"]
6
- types :
7
- - completed
8
3
workflow_dispatch :
4
+ workflow_call :
9
5
10
6
permissions :
11
7
contents : read
12
8
id-token : write
13
9
14
10
jobs :
15
11
prepare :
16
- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
17
12
runs-on : large-linux-x86
18
13
outputs :
19
14
postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
31
26
VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c "split(\"\n\")[:-1]")
32
27
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
33
28
build :
34
- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
35
29
needs : prepare
36
30
strategy :
37
31
matrix :
Original file line number Diff line number Diff line change 1
1
name : Testinfra Integration Tests Nix
2
2
3
3
on :
4
- # Trigger this workflow when the "Nix CI" workflow completes
5
- workflow_run :
6
- workflows : ["Nix CI"]
7
- types :
8
- - completed
9
4
workflow_dispatch :
5
+ workflow_call :
10
6
11
7
permissions :
12
8
contents : read
13
9
id-token : write
14
10
15
11
jobs :
16
12
prepare :
17
- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
18
13
runs-on : large-linux-x86
19
14
outputs :
20
15
postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
31
26
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
32
27
33
28
test-ami-nix :
34
- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
35
29
needs : prepare
36
30
strategy :
37
31
fail-fast : false
You can’t perform that action at this time.
0 commit comments