Skip to content

Commit

Permalink
Test Github actions (#6)
Browse files Browse the repository at this point in the history
* Test new artifact actions

* Test

* Test

* Test artifact

* Test artifacts

* Test

* Test

* Test

* Update playground.yml

* Test

* Add clean artifacts

* Test

* Test

* Rerun

* Add need to artifact-download

* Test

* Test Clean

* Code clean

* Test clean artifacts

---------

Co-authored-by: Xavier Lau <[email protected]>
  • Loading branch information
fewensa and AurevoirXavier committed Dec 15, 2023
1 parent 852ed13 commit 9ce0cf0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- srtool
- safe-transaction-service
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: benjlevesque/[email protected]

Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Playground

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
artifact-upload:
name: Artifact upload
runs-on: ubuntu-latest
strategy:
matrix:
animal: [cat, dog]
steps:
- uses: actions/checkout@v4

- name: Set name
run: |
mkdir build
echo '${{ matrix.animal }}' >> build/${{ matrix.animal }}.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.animal }}
path: build

artifact-download:
name: Artifact download
runs-on: ubuntu-latest
needs: [artifact-upload]
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: build

- name: Check downloaded
run: |
ls -R build
clean-artifacts:
name: Clean artifacts
runs-on: ubuntu-latest
needs: [artifact-download]
if: always()
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: |
artifact-cat
2 changes: 1 addition & 1 deletion .github/workflows/trigger-tracing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- mainnets
- testnets
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit 9ce0cf0

Please sign in to comment.