@@ -10,19 +10,20 @@ permissions:
1010 id-token : write
1111
1212jobs :
13- act :
14- name : Act - Run the continuous integration workflow
13+ act-without-container :
14+ name : Act - Run the continuous integration workflow (without container)
1515 uses : ./.github/workflows/continuous-integration.yml
1616 with :
17+ working-directory : tests/npm
1718 build : |
1819 {
1920 "artifact": "dist"
2021 }
2122
22- assert :
23- name : Assert - Ensure build artifact has been uploaded
23+ assert-without-container :
24+ name : Assert - Ensure build artifact has been uploaded (without container)
2425 runs-on : ubuntu-latest
25- needs : act
26+ needs : act-without-container
2627 steps :
2728 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2829 - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
3233
3334 - name : Check the build artifacts
3435 run : test -f dist/test.txt
36+
37+ arrange-with-container :
38+ permissions :
39+ id-token : write
40+ contents : read
41+ packages : write
42+ issues : read
43+ pull-requests : read
44+ uses : hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@f9e149b6cdfa8443994994f10085691a57b8cf0e # 0.27.1
45+ with :
46+ sign : false
47+ images : |
48+ [{
49+ "name": "ci-npm",
50+ "context": ".",
51+ "dockerfile": "./tests/npm/Dockerfile",
52+ "build-args": { "APP_PATH": "./tests/npm/" },
53+ "target": "ci",
54+ "platforms": ["linux/amd64"]
55+ }]
56+ secrets :
57+ oci-registry-password : ${{ secrets.GITHUB_TOKEN }}
58+
59+ act-with-container :
60+ name : Act - Run the continuous integration workflow (with container)
61+ uses : ./.github/workflows/continuous-integration.yml
62+ needs : arrange-with-container
63+ with :
64+ container : ${{ fromJSON(needs.arrange-with-container.outputs.built-images).ci-npm.images[0] }}
65+ build : |
66+ {
67+ "artifact": "dist"
68+ }
0 commit comments