mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(gha): disable i18n nodejs tests (#62106)
This commit is contained in:
committed by
GitHub
parent
bd2167c176
commit
ed116264e4
130
.github/workflows/node.js-tests.yml
vendored
130
.github/workflows/node.js-tests.yml
vendored
@@ -209,68 +209,68 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: pnpm test
|
||||
|
||||
test-localization:
|
||||
name: Test - i18n
|
||||
needs: build
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [22]
|
||||
locale: [portuguese, italian]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
|
||||
id: pnpm-install
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- name: Set Environment variables
|
||||
run: |
|
||||
cp sample.env .env
|
||||
cat .env
|
||||
|
||||
- name: Start MongoDB
|
||||
uses: supercharge/mongodb-github-action@b0a1493307c4e9b82ed61f3858d606c5ff190c64 # v1.10.0
|
||||
with:
|
||||
mongodb-version: 8.0
|
||||
mongodb-replica-set: test-rs
|
||||
mongodb-port: 27017
|
||||
|
||||
- name: Install Dependencies
|
||||
env:
|
||||
CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
run: |
|
||||
echo pnpm version $(pnpm -v)
|
||||
pnpm install
|
||||
|
||||
# DONT REMOVE THIS STEP.
|
||||
# TODO: Refactor and use re-usable workflow and shared artifacts
|
||||
- name: Build Client in ${{ matrix.locale }}
|
||||
env:
|
||||
CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
run: |
|
||||
pnpm run build
|
||||
|
||||
- name: Install Chrome for Puppeteer
|
||||
run: pnpm -F=curriculum install-puppeteer
|
||||
|
||||
- name: Run Tests
|
||||
env:
|
||||
CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
run: pnpm test
|
||||
# test-localization:
|
||||
# name: Test - i18n
|
||||
# needs: build
|
||||
# runs-on: ubuntu-22.04
|
||||
#
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# node-version: [22]
|
||||
# locale: [portuguese, italian]
|
||||
#
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
# with:
|
||||
# submodules: 'recursive'
|
||||
#
|
||||
# - name: Use Node.js ${{ matrix.node-version }}
|
||||
# uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
# with:
|
||||
# node-version: ${{ matrix.node-version }}
|
||||
#
|
||||
# - name: Install pnpm
|
||||
# uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
|
||||
# id: pnpm-install
|
||||
# with:
|
||||
# run_install: false
|
||||
#
|
||||
# - name: Set Environment variables
|
||||
# run: |
|
||||
# cp sample.env .env
|
||||
# cat .env
|
||||
#
|
||||
# - name: Start MongoDB
|
||||
# uses: supercharge/mongodb-github-action@b0a1493307c4e9b82ed61f3858d606c5ff190c64 # v1.10.0
|
||||
# with:
|
||||
# mongodb-version: 8.0
|
||||
# mongodb-replica-set: test-rs
|
||||
# mongodb-port: 27017
|
||||
#
|
||||
# - name: Install Dependencies
|
||||
# env:
|
||||
# CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
# CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
# run: |
|
||||
# echo pnpm version $(pnpm -v)
|
||||
# pnpm install
|
||||
#
|
||||
# # DONT REMOVE THIS STEP.
|
||||
# # TODO: Refactor and use re-usable workflow and shared artifacts
|
||||
# - name: Build Client in ${{ matrix.locale }}
|
||||
# env:
|
||||
# CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
# CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
# run: |
|
||||
# pnpm run build
|
||||
#
|
||||
# - name: Install Chrome for Puppeteer
|
||||
# run: pnpm -F=curriculum install-puppeteer
|
||||
#
|
||||
# - name: Run Tests
|
||||
# env:
|
||||
# CURRICULUM_LOCALE: ${{ matrix.locale }}
|
||||
# CLIENT_LOCALE: ${{ matrix.locale }}
|
||||
# run: pnpm test
|
||||
|
||||
Reference in New Issue
Block a user