Skip to content

Commit 85cf471

Browse files
Merge pull request #281 from springernature/create-id-for-run-tasks
Add ID to every run step in GitHub Actions
2 parents 41d22eb + 9831cf7 commit 85cf471

File tree

17 files changed

+43
-0
lines changed

17 files changed

+43
-0
lines changed

e2e/actions/artifacts/workflowExpected.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3636
submodules: recursive
3737
- name: build
38+
id: build
3839
uses: docker://debian:buster-slim
3940
with:
4041
args: -c "cd e2e/actions/artifacts; \mkdir target; echo foo > foo.txt; echo bar > target/bar.txt"
@@ -81,6 +82,7 @@ jobs:
8182
run: tar -xvf halfpipe-artifacts.tar; rm halfpipe-artifacts.tar
8283
working-directory: ${{ github.workspace }}
8384
- name: test
85+
id: test
8486
uses: docker://debian:buster-slim
8587
with:
8688
args: -c "cd e2e/actions/artifacts; \ls -l ..; cat foo.txt target/bar.txt ../test.sh"
@@ -100,6 +102,7 @@ jobs:
100102
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
101103
submodules: recursive
102104
- name: c-name-covenant
105+
id: c-name-covenant
103106
run: |-
104107
export ENV_OPTIONS="-e ARTIFACTORY_PASSWORD -e ARTIFACTORY_URL -e ARTIFACTORY_USERNAME"
105108
export VOLUME_OPTIONS="-v /mnt/halfpipe-cache/halfpipe-team:/var/halfpipe/shared-cache"

e2e/actions/consumer-integration-test/workflowExpected.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
4747
submodules: recursive
4848
- name: c-name
49+
id: c-name
4950
run: |-
5051
export ENV_OPTIONS="-e ARTIFACTORY_PASSWORD -e ARTIFACTORY_URL -e ARTIFACTORY_USERNAME -e K -e K1 -e S1"
5152
export VOLUME_OPTIONS="-v /mnt/halfpipe-cache/halfpipe-team:/var/halfpipe/shared-cache"
@@ -93,6 +94,7 @@ jobs:
9394
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
9495
submodules: recursive
9596
- name: c-name-covenant
97+
id: c-name-covenant
9698
run: |-
9799
export ENV_OPTIONS="-e ARTIFACTORY_PASSWORD -e ARTIFACTORY_URL -e ARTIFACTORY_USERNAME -e K -e K1 -e S1"
98100
export VOLUME_OPTIONS="-v /mnt/halfpipe-cache/halfpipe-team:/var/halfpipe/shared-cache"

e2e/actions/deploy-cf/workflowExpected.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3636
submodules: recursive
3737
- name: make binary
38+
id: make-binary
3839
uses: docker://ubuntu
3940
with:
4041
args: -c "cd e2e/actions/deploy-cf; \echo foo > foo.html"
@@ -262,6 +263,7 @@ jobs:
262263
testDomain: springernature.app
263264
username: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_cloudfoundry_username-snpaas }}
264265
- name: run smoke-test.sh
266+
id: run-smoke-test-sh
265267
uses: docker://alpine
266268
with:
267269
args: -c "cd e2e/actions/deploy-cf; ./smoke-test.sh"
@@ -270,6 +272,7 @@ jobs:
270272
ENV5: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_some_secret }}
271273
TEST_ROUTE: halfpipe-example-dev-CANDIDATE.springernature.app
272274
- name: docker-compose
275+
id: docker-compose
273276
run: |-
274277
docker-compose \
275278
-f docker-compose.yml \
@@ -293,6 +296,7 @@ jobs:
293296
if: always()
294297
run: docker-compose -f docker-compose.yml down
295298
- name: CDCs
299+
id: cdcs
296300
run: |-
297301
export ENV_OPTIONS="-e ARTIFACTORY_PASSWORD -e ARTIFACTORY_URL -e ARTIFACTORY_USERNAME -e TEST_ROUTE"
298302
export VOLUME_OPTIONS="-v /mnt/halfpipe-cache/halfpipe-team:/var/halfpipe/shared-cache"

e2e/actions/deploy-ml/workflowExpected.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3333
submodules: recursive
3434
- name: create zip for ml task
35+
id: create-zip-for-ml-task
3536
uses: docker://alpine
3637
with:
3738
args: -c "cd e2e/actions/deploy-ml; \package.sh"
@@ -67,6 +68,7 @@ jobs:
6768
run: tar -xvf halfpipe-artifacts.tar; rm halfpipe-artifacts.tar
6869
working-directory: ${{ github.workspace }}
6970
- name: deploy-ml-zip
71+
id: deploy-ml-zip
7072
uses: docker://eu.gcr.io/halfpipe-io/halfpipe-ml-deploy
7173
with:
7274
args: -c "cd e2e/actions/deploy-ml; /ml-deploy/deploy-local-zip"
@@ -105,6 +107,7 @@ jobs:
105107
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
106108
submodules: recursive
107109
- name: Deploy ml-modules artifact
110+
id: deploy-ml-modules-artifact
108111
uses: docker://eu.gcr.io/halfpipe-io/halfpipe-ml-deploy
109112
with:
110113
args: -c "cd e2e/actions/deploy-ml; /ml-deploy/deploy-ml-modules"

e2e/actions/docker-compose/workflowExpected.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3333
submodules: recursive
3434
- name: test
35+
id: test
3536
run: |-
3637
docker-compose \
3738
-f docker-compose.yml \
@@ -104,6 +105,7 @@ jobs:
104105
run: tar -xvf halfpipe-artifacts.tar; rm halfpipe-artifacts.tar
105106
working-directory: ${{ github.workspace }}
106107
- name: custom
108+
id: custom
107109
run: |-
108110
docker-compose \
109111
-f custom-docker-compose.yml \
@@ -146,6 +148,7 @@ jobs:
146148
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
147149
submodules: recursive
148150
- name: multiple-compose-files
151+
id: multiple-compose-files
149152
run: |-
150153
docker-compose \
151154
-f docker-compose.yml \

e2e/actions/docker-push/workflowExpected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3636
submodules: recursive
3737
- name: build
38+
id: build
3839
uses: docker://foo
3940
with:
4041
args: -c "cd e2e/actions/docker-push; \build"

e2e/actions/feature-update-pipeline-and-tag/workflowExpected.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
7878
submodules: recursive
7979
- name: A1
80+
id: a1
8081
run: |-
8182
docker-compose \
8283
-f docker-compose.yml \
@@ -112,6 +113,7 @@ jobs:
112113
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
113114
submodules: recursive
114115
- name: A2
116+
id: a2
115117
run: |-
116118
docker-compose \
117119
-f docker-compose.yml \
@@ -147,6 +149,7 @@ jobs:
147149
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
148150
submodules: recursive
149151
- name: B
152+
id: b
150153
run: |-
151154
docker-compose \
152155
-f docker-compose.yml \

e2e/actions/feature-update-pipeline/workflowExpected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
7474
submodules: recursive
7575
- name: run \echo hello
76+
id: run-echo-hello
7677
uses: docker://alpine
7778
with:
7879
args: -c "cd e2e/actions/feature-update-pipeline; \echo hello"

e2e/actions/notifications/workflowExpected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
3333
submodules: recursive
3434
- name: my run task
35+
id: my-run-task
3536
uses: docker://foo
3637
with:
3738
args: -c "cd e2e/actions/notifications; \foo"

e2e/actions/notifications_new_format/workflowExpected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
ssh-key: ${{ secrets.EE_GITHUB_PRIVATE_KEY }}
4444
submodules: recursive
4545
- name: my run task
46+
id: my-run-task
4647
uses: docker://foo
4748
with:
4849
args: -c "cd e2e/actions/notifications_new_format; \foo"

0 commit comments

Comments
 (0)