diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 4e92e26..50ff247 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,7 +2,7 @@ ARG VARIANT="4" FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT} -ARG NODE_VERSION="24" +ARG NODE_VERSION="24.22.1" # https://github.com/microsoft/vscode-dev-containers/blob/main/containers/go/.devcontainer/base.Dockerfile ENV USERNAME=vscode @@ -13,6 +13,7 @@ ENV NVM_SYMLINK_CURRENT=true \ RUN mkdir /tmp/library-scripts \ && curl -fsSL -o /tmp/library-scripts/node-debian.sh "${LIBRARY_SCRIPTS_SRC}" RUN bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}" \ + && test "$(node --version)" = "v24.22.1" \ && apt-get clean -y && rm -rf /var/lib/apt/lists/* \ && rm -rf /tmp/library-scripts diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d104215..12d1d0c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,7 +4,7 @@ "build": { "dockerfile": "Dockerfile", "args": { - "NODE_VERSION": "24", + "NODE_VERSION": "24.22.1", "VARIANT": "4" } }, diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index d52103d..b32a688 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -24,12 +24,14 @@ runs: if: inputs.install_dependencies == 'true' with: node-version: ${{ inputs.node_version }} + check-latest: true registry-url: ${{ inputs.registry_url }} - name: Setup Node.js without cache uses: actions/setup-node@v7 if: inputs.install_dependencies == 'false' with: node-version: ${{ inputs.node_version }} + check-latest: true registry-url: ${{ inputs.registry_url }} - name: Install dependencies if: inputs.install_dependencies == 'true' diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index 4eab85a..0d42e66 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -17,7 +17,7 @@ on: jobs: build: name: Gem - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: - name: Checkout diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 03b02be..bcf685f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,13 +18,13 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest + - ubuntu-24.04 ruby: - '3.3' - '3.4' - '4.0' include: - - os: ubuntu-latest + - os: ubuntu-24.04 os_name: Linux steps: - name: Checkout @@ -39,7 +39,7 @@ jobs: run: bundle exec rake test lint: name: Lint (Ruby ${{ matrix.ruby }}) - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: fail-fast: false @@ -69,13 +69,13 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest + - ubuntu-24.04 ruby: - '3.3' - '3.4' - '4.0' include: - - os: ubuntu-latest + - os: ubuntu-24.04 os_name: Linux steps: - name: Setup Ruby diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 8e3ddf0..4b9d3df 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -10,7 +10,7 @@ on: jobs: commit: name: Format code - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: - name: Checkout diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 0fb9dcd..14beb7b 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -10,7 +10,7 @@ on: jobs: commit: name: Generate code - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: - name: Checkout