File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -109,3 +109,45 @@ jobs:
109109
110110 - name : Check the build artifacts
111111 run : test -f ${{ runner.temp }}/usr/src/app/dist/test.txt
112+
113+ act-with-container-advanced :
114+ name : Act - Run the continuous integration workflow (with container and advanced options)
115+ uses : ./.github/workflows/continuous-integration.yml
116+ needs : arrange-with-container
117+ permissions :
118+ contents : read
119+ pull-requests : write
120+ security-events : write
121+ # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
122+ id-token : write
123+ with :
124+ container : |
125+ {
126+ "image": "${{ fromJSON(needs.arrange-with-container.outputs.built-images).ci-npm.images[0] }}",
127+ "env": {
128+ "NODE_ENV": "test",
129+ "CI": "true"
130+ },
131+ "options": "--cpus 1"
132+ }
133+ working-directory : /usr/src/app/
134+ build : |
135+ {
136+ "artifact": "dist"
137+ }
138+ test : |
139+ {"coverage": "codecov"}
140+
141+ assert-with-container-advanced :
142+ name : Assert - Ensure build artifact has been uploaded (with container advanced)
143+ runs-on : ubuntu-latest
144+ needs : act-with-container-advanced
145+ steps :
146+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
147+ - uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
148+ with :
149+ artifact-ids : ${{ needs.act-with-container-advanced.outputs.build-artifact-id }}
150+ path : ${{ runner.temp }}
151+
152+ - name : Check the build artifacts
153+ run : test -f ${{ runner.temp }}/usr/src/app/dist/test.txt
You can’t perform that action at this time.
0 commit comments