Skip to content

Commit df1f90d

Browse files
committed
#369 Test GitHub action
1 parent 227be63 commit df1f90d

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/gradle-build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ jobs:
1818
secrets:
1919
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2020

21+
test-gh-action:
22+
needs: build-artifacts
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Check out
27+
uses: actions/checkout@v5
28+
29+
- name: Prepare Docker image for test
30+
run: |
31+
docker tag ghcr.io/aim42/hsc:$(git branch --show-current | tr '/' '-') ghcr.io/aim42/hsc:v2
32+
33+
- name: Download Artifacts
34+
uses: actions/download-artifact@v5
35+
with:
36+
name: build-artifacts
37+
path: .
38+
39+
- name: Test GH Action as provided by this repository
40+
uses: ./
41+
with:
42+
args: integration-test/common/build/docs
43+
2144
post-build:
2245
needs: build-artifacts
2346
runs-on: ubuntu-latest

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ inputs:
88
required: false
99
runs:
1010
using: 'docker'
11+
# If the image tag changes, e.g., to v3, the action in the test workflow (workflows/gradle-build.yml) must be adjusted accordingly
1112
image: 'docker://ghcr.io/aim42/hsc:v2'
1213
entrypoint: '/bin/sh'
1314
args:

0 commit comments

Comments
 (0)