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: upgrade CI actions #2294

Merged
merged 17 commits into from
May 15, 2024
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
6 changes: 3 additions & 3 deletions .github/actions/ci-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ runs:
using: "composite"
steps:
- name: Cache PNPM modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v4
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: true
6 changes: 3 additions & 3 deletions .github/actions/test-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ runs:
using: "composite"
steps:
- name: Cache PNPM modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v4
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/breaking-change-pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: FuelLabs/github-actions/setups/node@master
- uses: ./.github/actions/ci-setup
with:
node-version: 20.10.0
pnpm-version: 9.0.5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forc-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
verify-forc-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/ci-setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/md-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/ci-setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-unpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
name: Unpublish versions next and pr
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- uses: FuelLabs/github-actions/setups/node@master
- uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- uses: FuelLabs/github-actions/setups/npm@master
with:
npm-token: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:

- name: Checkout API Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: docs
fetch-depth: 0
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
environments:
runs-on: ubuntu-latest
# name will be node@<version> or browser
name: ${{ matrix.env.name }}${{ matrix.env.name == 'node' && '@' || ''}}${{ matrix.env.name == 'node' && matrix.env.version || ''}}
name: ${{ matrix.env.name }}${{ matrix.env.version && '@' || ''}}${{ matrix.env.version || ''}}
strategy:
fail-fast: false
matrix:
Expand All @@ -33,7 +33,7 @@ jobs:
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/test-setup
Expand Down Expand Up @@ -63,10 +63,11 @@ jobs:
run: pnpm ci:test --${{ matrix.env.name }}

- name: Upload Coverage - ${{ matrix.env.name }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env.name }}
path: coverage/environments/${{ matrix.env.name }}
overwrite: true

e2e:
runs-on: ubuntu-latest
Expand All @@ -75,7 +76,7 @@ jobs:
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -99,7 +100,7 @@ jobs:
needs: [environments, e2e]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: CI Setup
uses: ./.github/actions/test-setup
Expand All @@ -108,7 +109,7 @@ jobs:
run: mkdir -p coverage/environments

- name: Download Coverage Artifact for Node Tests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: node
path: coverage/environments
Expand All @@ -121,7 +122,7 @@ jobs:
id: findPr

- name: Upload Master Coverage Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !steps.findPr.outputs.number }}
with:
name: coverage-master
Expand Down Expand Up @@ -155,13 +156,13 @@ jobs:
if: github.actor == 'dependabot[bot]'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.ref }}

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v4
with:
version: 9.0.5
run_install: true
Expand Down
Loading