Skip to content

Commit

Permalink
Update action and dependencies to node 20 (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk authored Jul 30, 2024
1 parent 2436be9 commit df31ae8
Show file tree
Hide file tree
Showing 16 changed files with 1,291 additions and 715 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Custom token to allow commits trigger other workflows.
token: ${{ secrets.BUILD_ACTION_GITHUB_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: dessant/lock-threads@v4
- uses: dessant/lock-threads@v5
with:
issue-inactive-days: 10
pr-inactive-days: 10
6 changes: 3 additions & 3 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ jobs:
steps:
- name: Check out repository (push)
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check out repository (pull_request_target)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# ClangFormat

Expand All @@ -44,7 +44,7 @@ jobs:
# Go

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19.4

Expand All @@ -56,7 +56,7 @@ jobs:
# Node.js

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
# Python

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: "pip"
Expand All @@ -114,7 +114,7 @@ jobs:
bundler: 2

- name: Set up bundle cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./test/linters/projects/**/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('./test/linters/projects/**/Gemfile.lock', '.github/workflows/test.yml') }}
Expand All @@ -139,15 +139,15 @@ jobs:
- name: Set up Swift cache (Linux)
id: cache-swift
if: startsWith(matrix.os, 'ubuntu')
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./swift-format/.build
key: ${{ runner.os }}-swift-0.50500.0
key: ${{ runner.os }}-swift-509.0.0

- name: Install Swift dependencies (Linux, uncached)
if: steps.cache-swift.outputs.cache-hit != 'true' && startsWith(matrix.os, 'ubuntu')
run: |
git clone --branch 0.50500.0 --depth 1 https://github.com/apple/swift-format
git clone --branch 509.0.0 --depth 1 https://github.com/apple/swift-format
cd swift-format
swift build -c release
echo "${PWD}/.build/release" >> $GITHUB_PATH
Expand All @@ -161,7 +161,7 @@ jobs:

- name: Set up Mint cache (macOS)
if: startsWith(matrix.os, 'macos')
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.mint
key: ${{ runner.os }}-mint-${{ hashFiles('./test/linters/projects/**/Mintfile', '.github/workflows/test.yml') }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Install your linters here

Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install ClangFormat
run: sudo apt-get install -y clang-format
Expand Down Expand Up @@ -325,7 +325,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v1
Expand Down Expand Up @@ -360,7 +360,7 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ inputs:
default: "true"

runs:
using: node16
using: node20
main: ./dist/index.js

branding:
Expand Down
Loading

0 comments on commit df31ae8

Please sign in to comment.