Skip to content

Commit 2496599

Browse files
committed
ci: artifacts setup for dapp-inter
1 parent 44376d1 commit 2496599

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules/
22
docker
3+
# Ignore generated credentials from google-github-actions/auth
4+
gha-creds-*.json

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ coverage
33
dist
44
patches
55
yarn.lock
6-
6+
# Ignore generated credentials from google-github-actions/auth
7+
gha-creds-*.json

.github/workflows/reusable-workflow.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ jobs:
3535
e2e:
3636
runs-on: ubuntu-latest
3737

38+
permissions:
39+
contents: 'read'
40+
id-token: 'write'
41+
3842
steps:
3943
- name: Checkout
40-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
45+
46+
- name: 'GCP auth'
47+
uses: 'google-github-actions/auth@v2'
48+
if: ${{ inputs.is_emerynet_test }}
49+
with:
50+
project_id: 'simulationlab'
51+
workload_identity_provider: 'projects/60745596728/locations/global/workloadIdentityPools/github/providers/dapp-inter'
4152

4253
- name: Set up QEMU
4354
uses: docker/setup-qemu-action@v2
@@ -89,13 +100,25 @@ jobs:
89100
CYPRESS_BIDDER_MNEMONIC_INPUT: ${{ inputs.bidder_mnemonic }}
90101
CYPRESS_BIDDER_ADDRESS_INPUT: ${{ inputs.bidder_address }}
91102

92-
- name: Archive e2e artifacts
93-
uses: actions/upload-artifact@v3
94-
if: always()
103+
- name: Upload e2e artifacts as workflow artifacts
104+
uses: actions/upload-artifact@v4
105+
if: ${{ inputs.is_emerynet_test && !cancelled() }}
95106
with:
96107
name: e2e-artifacts
97108
path: |
98109
test/e2e/docker/videos
99110
test/e2e/docker/videos-ci
100111
test/e2e/docker/screenshots
101112
continue-on-error: true
113+
114+
- name: Upload e2e artifacts to GCP
115+
uses: google-github-actions/upload-cloud-storage@v2
116+
if: ${{ inputs.is_emerynet_test && !cancelled() }}
117+
with:
118+
path: 'test/e2e/docker'
119+
destination: 'github-artifacts/${{ github.repository }}/${{ github.run_id }}/${{ github.event.repository.updated_at }}'
120+
continue-on-error: true
121+
122+
- name: Log Path to GCS artifacts
123+
if: ${{ inputs.is_emerynet_test && !cancelled() }}
124+
run: echo "https://console.cloud.google.com/storage/browser/github-artifacts/${{ github.repository }}/${{ github.run_id }}/${{ github.event.repository.updated_at }}/docker/videos"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ screenshots
3030
videos
3131
cypress
3232
docker
33+
# Ignore generated credentials from google-github-actions/auth
34+
gha-creds-*.json

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ node_modules
33
yarn.lock
44
coverage
55
patches
6+
# Ignore generated credentials from google-github-actions/auth
7+
gha-creds-*.json

0 commit comments

Comments
 (0)