Skip to content

Commit

Permalink
chore: use node 20 in actions (#1216)
Browse files Browse the repository at this point in the history
* chore: use node 20 in actions

* chore: update to node 20 in dockerfile
  • Loading branch information
Nirajn2311 authored Apr 2, 2024
1 parent 623981b commit a6f0529
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
fail-fast: true

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
node-version: [ 18.x ]
node-version: [ 20.x ]
site_tlds: [ dev, org ]

steps:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/mobile-curriculum-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
mobile-test:
name: Test curriculum for mobile app
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout freeCodeCamp main repo
Expand All @@ -34,10 +37,10 @@ jobs:
with:
version: 8

- name: Use Node.js 18.x
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}

- name: Setup Flutter 3.16.x
uses: subosito/flutter-action@1c5eb12d812966ca84680edc38353a0851c8fd56 # v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ defaults:
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- name: Checkout source code
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ defaults:
jobs:
build-and-test:
name: Build and Test Image
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
runs-on: ubuntu-22.04

steps:
- name: Checkout source code
Expand Down
6 changes: 3 additions & 3 deletions mobile-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:18-alpine AS builder
FROM node:20-alpine AS builder
WORKDIR /build
COPY . .
RUN npm ci
RUN npm run build

FROM node:18-alpine AS dependencies
FROM node:20-alpine AS dependencies
WORKDIR /build
COPY package-lock.json package.json ./
RUN npm ci --production

FROM node:18-alpine
FROM node:20-alpine
WORKDIR /api
COPY --from=builder /build/package.json /build/package-lock.json ./
COPY --from=builder /build/prod/ ./prod/
Expand Down

0 comments on commit a6f0529

Please sign in to comment.