fix: Resolve more deprecation warnings in GitHub Actions (#1794)

## Motivation

Deprecation warnings are noisy.

## Change Summary

Upgrade versions of various actions.

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates GitHub Actions versions, optimizes caching strategies,
and improves retry behavior for a Node.js project's CI workflow.

### Detailed summary
- Updated `actions/checkout` from v3 to v4
- Updated `docker/setup-buildx-action` from v2 to v3
- Adjusted retry behavior in a command
- Enhanced caching with `actions/cache` from v3 to v4
- Updated `codecov/codecov-action` from v3 to v4

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
This commit is contained in:
Shane da Silva
2024-03-06 19:14:56 -08:00
committed by GitHub
parent 18800701d0
commit 7165aabf2c

View File

@@ -18,10 +18,10 @@ jobs:
runs-on: 'buildjet-16vcpu-ubuntu-2204-arm'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build Docker image
id: docker-image
@@ -50,7 +50,7 @@ jobs:
max_attempts: 10
shell: bash
command: ./grpcurl -plaintext -import-path protobufs/schemas -proto protobufs/schemas/rpc.proto 127.0.0.1:2283 HubService.GetInfo
on_retry_command: docker logs hub
on_retry_command: docker logs hub
test:
timeout-minutes: 10
@@ -61,7 +61,7 @@ jobs:
- node_version: 18
runs_on: 'buildjet-8vcpu-ubuntu-2204'
- node_version: 20
runs_on: 'buildjet-8vcpu-ubuntu-2204'
runs_on: 'buildjet-8vcpu-ubuntu-2204'
- node_version: 21
runs_on: 'buildjet-16vcpu-ubuntu-2204-arm'
@@ -78,13 +78,13 @@ jobs:
- name: Restore cached dependencies for Node modules.
id: module-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ runner.arch }}--node--${{ matrix.node_version}}--${{ hashFiles('yarn.lock') }}
- name: Cache Cargo registry and git
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
@@ -92,7 +92,7 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-cargo-registry-${{ hashFiles('apps/hubble/src/addon/Cargo.lock') }}
- name: Cache Cargo build artifacts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/apps/hubble/src/addon/target
key: ${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('apps/hubble/src/addon/Cargo.lock') }}
@@ -121,4 +121,4 @@ jobs:
run: yarn test:ci
- name: Upload coverage results
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4