diff --git a/.github/workflows/ci.js.yml b/.github/workflows/ci.js.yml index a4cd4faf..6ae6c8cb 100644 --- a/.github/workflows/ci.js.yml +++ b/.github/workflows/ci.js.yml @@ -9,14 +9,14 @@ on: jobs: precheck: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 - - name: Use Node.js LTS (16.x) + - name: Use Node.js LTS (24.x) uses: actions/setup-node@v1 with: - node-version: 16.x + node-version: 24.x - name: Install project dependencies run: yarn install --frozen-lockfile --ignore-scripts @@ -25,11 +25,11 @@ jobs: run: yarn lint unit_tests: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 strategy: matrix: - node-version: [14.x, 16.x] + node-version: [24.x, 26.x] steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 @@ -48,7 +48,7 @@ jobs: run: yarn test:e2e smoke_tests: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: Checkout code uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 diff --git a/.github/workflows/pr.ci.js.yml b/.github/workflows/pr.ci.js.yml index f2d9678f..2ea0ac94 100644 --- a/.github/workflows/pr.ci.js.yml +++ b/.github/workflows/pr.ci.js.yml @@ -7,16 +7,16 @@ on: pull_request jobs: precheck: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: Checkout PR uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 - - name: Use Node.js LTS (16.x) + - name: Use Node.js LTS (24.x) uses: actions/setup-node@v1 with: - node-version: 16.x + node-version: 24.x - name: Install project dependencies run: yarn install --frozen-lockfile --ignore-scripts @@ -24,12 +24,12 @@ jobs: - name: Run exercism/javascript ci precheck (lint code) run: yarn lint - unit_tests: - runs-on: ubuntu-24.04 + ci: + runs-on: ubuntu-26.04 strategy: matrix: - node-version: [14.x, 16.x] + node-version: [24.x, 26.x] steps: - name: Checkout PR @@ -50,7 +50,7 @@ jobs: run: yarn test:e2e smoke_tests: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - name: Checkout code uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 diff --git a/Dockerfile b/Dockerfile index 28b6c5d3..9b0cf973 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM node:lts-alpine3.23@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f AS builder +# sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd => node:24.18.0-alpine3.24 +FROM node:lts-alpine@sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd AS builder # Install SSL ca certificates RUN apk update && apk add ca-certificates @@ -17,7 +18,7 @@ RUN yarn install RUN yarn install --production --modules-folder './production_node_modules' # Build a minimal and secured container -FROM node:lts-alpine3.23@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f +FROM node:lts-alpine@sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /javascript-analyzer/package.json /opt/analyzer/package.json