Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 5, 2024
1 parent ef7818b commit 902dad7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
exit 1
fi
if: ${{ env.LOCALSTACK_PERSIST_VERSION != 'latest' }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: sudo -E python3 test.py
- run: sudo -E docker compose logs
if: ${{ failure() }}
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
needs: validation
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set semver tags
id: tags
uses: docker/metadata-action@v5
Expand All @@ -60,16 +60,16 @@ jobs:
type=semver,pattern={{major}},value=${{ env.LOCALSTACK_PERSIST_VERSION }},enable=${{ env.LOCALSTACK_PERSIST_VERSION != 'latest' }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
PERSIST_FORMAT: ${{ matrix.PERSIST_FORMAT }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: sudo -E python3 test.py
- run: sudo -E docker compose logs
if: ${{ failure() }}
- name: rename files with colon chars
run: export COLON_CHAR="$(printf '\uf03a')"; find temp-persisted-data -type d -name "*:*" | perl -nle "print \$_, ' ', s/:/$COLON_CHAR/rg" | sudo xargs -L 1 mv
if: ${{ failure() }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: persisted-data
path: temp-persisted-data/
Expand All @@ -51,14 +51,14 @@ jobs:
TEST_PERSISTED_DATA_DIR: ${{ matrix.TEST_PERSISTED_DATA_DIR }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: sudo -E python3 test.py
- run: sudo -E docker compose logs
if: ${{ failure() }}
- name: rename files with colon chars
run: export COLON_CHAR="$(printf '\uf03a')"; find temp-persisted-data -type d -name "*:*" | perl -nle "print \$_, ' ', s/:/$COLON_CHAR/rg" | sudo xargs -L 1 mv
if: ${{ failure() }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: persisted-data
path: temp-persisted-data/
Expand All @@ -69,6 +69,6 @@ jobs:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pip3 install --upgrade pip && pip3 install localstack moto readerwriterlock jsonpickle==3.2.1 watchdog==4.0.1 boto3-stubs[essential,acm,es,iam]
- run: npx -y pyright src

0 comments on commit 902dad7

Please sign in to comment.