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 99 workflow_dispatch :
1010
1111permissions :
12- contents : read
1312 id-token : write
13+ # required by testinfra-ami-build dependent workflows
14+ contents : write
15+ packages : write
1416
1517jobs :
1618 build-run-image :
8486 AWS_ACCESS_KEY_ID : ${{ env.AWS_ACCESS_KEY_ID }}
8587 AWS_SECRET_ACCESS_KEY : ${{ env.AWS_SECRET_ACCESS_KEY }}
8688 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 11name : Test Database
22on :
3- # Trigger this workflow when the "Nix CI" workflow completes
4- workflow_run :
5- workflows : ["Nix CI"]
6- types :
7- - completed
83 workflow_dispatch :
4+ workflow_call :
95
106permissions :
117 contents : read
128 id-token : write
139
1410jobs :
1511 prepare :
16- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
1712 runs-on : large-linux-x86
1813 outputs :
1914 postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
3126 VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c "split(\"\n\")[:-1]")
3227 echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
3328 build :
34- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
3529 needs : prepare
3630 strategy :
3731 matrix :
Original file line number Diff line number Diff line change 11name : Testinfra Integration Tests Nix
22
33on :
4- # Trigger this workflow when the "Nix CI" workflow completes
5- workflow_run :
6- workflows : ["Nix CI"]
7- types :
8- - completed
94 workflow_dispatch :
5+ workflow_call :
106
117permissions :
128 contents : read
139 id-token : write
1410
1511jobs :
1612 prepare :
17- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
1813 runs-on : large-linux-x86
1914 outputs :
2015 postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
3126 echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
3227
3328 test-ami-nix :
34- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
3529 needs : prepare
3630 strategy :
3731 fail-fast : false
You can’t perform that action at this time.
0 commit comments