Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update action dependency versions #1449

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ runs:
using: composite
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ inputs.dockerhub_username }}
password: ${{ inputs.dockerhub_token }}
if: ${{ inputs.dockerhub_token != '' }}

- name: Set up QEMU
uses: docker/setup-qemu-action@master
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ inputs.platforms }}

Expand All @@ -57,7 +57,7 @@ runs:

- name: Set up Docker BuildX
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760
Expand Down Expand Up @@ -96,7 +96,7 @@ runs:

- name: Set Docker tags and labels
id: docker_meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ inputs.image }}
tags: |
Expand All @@ -117,7 +117,7 @@ runs:

- name: Build and push Docker image ${{ inputs.image }}
id: docker_build
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.JS
uses: actions/setup-node@v3
Expand All @@ -43,10 +43,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Audit crates
uses: actions-rs/audit-check@v1
uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable
Expand All @@ -69,15 +69,15 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Restore timestamps
uses: chetan/git-restore-mtime-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -95,7 +95,7 @@ jobs:
run: yarn build --filter "+dash"

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760
Expand Down Expand Up @@ -184,13 +184,13 @@ jobs:
timeout-minutes: 120
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -210,7 +210,7 @@ jobs:
run: yarn build --filter "+dash"

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760
Expand Down Expand Up @@ -302,10 +302,10 @@ jobs:
security-events: write
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout main
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare docs
run: "${GITHUB_WORKSPACE}/scripts/prepare_docs.sh"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/js-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -66,15 +66,15 @@ jobs:
firefox-version: "latest"

- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Restore timestamps
uses: chetan/git-restore-mtime-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
if: ${{ !inputs.start-local-network }}

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
if: ${{ inputs.start-local-network }}
with:
install: true
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: github.event_name != 'workflow_dispatch'
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check package version matches tag
uses: geritol/[email protected]
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
timeout-minutes: 120
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
os: macos-12
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install macOS build deps
if: runner.os == 'macOS'
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/rs-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,24 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: ./.github/actions/rust
with:
toolchain: stable
components: clippy

- uses: actions-rs/clippy-check@v1
- uses: clechasseur/rs-clippy-check@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

formatting:
name: Formatting
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ]
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: ./.github/actions/rust
Expand All @@ -50,7 +49,7 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: ./.github/actions/rust
Expand All @@ -65,7 +64,7 @@ jobs:

steps:
- name: Checkout base commit
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

Expand All @@ -90,23 +89,23 @@ jobs:
echo "::set-output name=base_dir::$(pwd)/base_structures"

- name: Checkout PR commit
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Check structure changes
run: |
for file in $(jq -r '.[]' <<< "${{ steps.files.outputs.files }}"); do
if [[ $file == *.rs ]]; then
awk '/@append_only/,/}/' $file > "$(basename $file).append_only.pr"
awk '/@immutable/,/}/' $file > "$(basename $file).immutable.pr"

# Check append_only structures
if ! diff -u "${{ steps.base_structures.outputs.base_dir }}/$(basename $file).append_only.base" "$(basename $file).append_only.pr" | grep "^-" | grep -v "@append_only" | grep -v "^-" | grep -v "^///" | grep -v "^//" | grep -v "^-$"; then
echo "No deletions detected in @append_only structures in $file. Test passed."
else
echo "Deletions detected in @append_only structures in $file. Test failed."
exit 1
fi

# Check immutable structures
if ! diff -u "${{ steps.base_structures.outputs.base_dir }}/$(basename $file).immutable.base" "$(basename $file).immutable.pr" | grep -E "^\+[^/+]|^-[^/-]" ; then
echo "No code changes detected in @immutable structures in $file. Test passed."
Expand All @@ -123,7 +122,7 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: ./.github/actions/rust
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm-dpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
timeout-minutes: 15
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Rust
uses: ./.github/actions/rust
Expand Down