Skip to content

Commit 2dac07e

Browse files
Copilotneilime
andcommitted
Fix spelling and add container mode validation tests
Co-authored-by: neilime <314088+neilime@users.noreply.github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 7db334b commit 2dac07e

File tree

7 files changed

+48
-4117
lines changed

7 files changed

+48
-4117
lines changed

.github/workflows/__main-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
permissions:
1414
actions: write
1515
contents: write
16+
issues: read
17+
packages: write
1618
pages: write
1719
pull-requests: write
1820
security-events: write

.github/workflows/__pull-request-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
permissions:
99
actions: read
1010
contents: read
11+
issues: read
12+
packages: write
13+
pull-requests: read
1114
security-events: write
1215
statuses: write
1316
# FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659

.github/workflows/__shared-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
permissions:
77
actions: read
88
contents: read
9+
issues: read
10+
packages: write
11+
pull-requests: read
912
security-events: write
1013
statuses: write
1114
# FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659

.github/workflows/__test-workflow-continuous-integration.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ permissions:
1010
id-token: write
1111

1212
jobs:
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
@@ -32,3 +33,36 @@ jobs:
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+
}

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ on:
4141
required: false
4242
default: true
4343
coverage:
44-
description: "Specifify code coverage reporter. Supported values: `codecov`."
44+
description: "Specify code coverage reporter. Supported values: `codecov`."
4545
type: string
4646
required: false
4747
default: "codecov"

0 commit comments

Comments
 (0)