Skip to content

CI - Node.js Curriculum #8

CI - Node.js Curriculum

CI - Node.js Curriculum #8

name: CI - Node.js
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
permissions:
contents: read
jobs:
lint:
name: Build i18n Curriculum
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
fail-fast: false
steps:
- name: Checkout Source Files
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Remove English
run: |
rm -rf curriculum/challenges/english/
rm -rf curriculum/dictionaries/english/
- name: Checkout Main Repo
run: |
git clone https://github.com/freeCodeCamp/freeCodeCamp.git freecodecamp
# Todo: Remove this step after we remove the files from the repo
- name: Remove i18n Challenges from freeCodeCamp
run: |
rm -rf freecodecamp/curriculum/challenges/arabic
rm -rf freecodecamp/curriculum/challenges/chinese
rm -rf freecodecamp/curriculum/challenges/chinese-traditional
rm -rf freecodecamp/curriculum/challenges/espanol
rm -rf freecodecamp/curriculum/challenges/german
rm -rf freecodecamp/curriculum/challenges/italian
rm -rf freecodecamp/curriculum/challenges/japanese
rm -rf freecodecamp/curriculum/challenges/korean
rm -rf freecodecamp/curriculum/challenges/portuguese
rm -rf freecodecamp/curriculum/challenges/swahili
rm -rf freecodecamp/curriculum/challenges/ukrainian
rm -rf freecodecamp/curriculum/dictionaries/arabic
rm -rf freecodecamp/curriculum/dictionaries/chinese
rm -rf freecodecamp/curriculum/dictionaries/chinese-traditional
rm -rf freecodecamp/curriculum/dictionaries/espanol
rm -rf freecodecamp/curriculum/dictionaries/german
rm -rf freecodecamp/curriculum/dictionaries/italian
rm -rf freecodecamp/curriculum/dictionaries/japanese
rm -rf freecodecamp/curriculum/dictionaries/korean
rm -rf freecodecamp/curriculum/dictionaries/portuguese
rm -rf freecodecamp/curriculum/dictionaries/swahili
rm -rf freecodecamp/curriculum/dictionaries/ukrainian
- name: Debug
run: |
ls -la freecodecamp/curriculum/challenges
echo "----------------"
ls -la freecodecamp/curriculum/dictionaries
- name: Copy i18n Challenges
run: |
cp -r curriculum/challenges/* freecodecamp/curriculum/challenges
cp -r curriculum/dictionaries/* freecodecamp/curriculum/dictionaries
- name: Debug
run: |
ls -la freecodecamp/curriculum/challenges
echo "----------------"
ls -la freecodecamp/curriculum/dictionaries