CI - Node.js Curriculum #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Debug 1 | |
run: | | |
pwd | |
ls -la | |
echo "----------------" | |
cd .. | |
ls -la | |
- name: Remove English | |
run: | | |
rm -rf curriculum/challenges/english/ | |
rm -rf curriculum/dictionaries/english/ | |
- name: Debug 2 | |
run: | | |
ls -la curriculum/challenges | |
echo "----------------" | |
ls -la curriculum/dictionaries | |
- name: Checkout Main Repo | |
run: | | |
git clone https://github.com/moT01/fcc.git fcc | |
- name: Debug 3 | |
run: ls -la | |
- name: Copy i18n Challenges | |
run: | | |
cp -r curriculum/challenges fcc/curriculum/challenges | |
cp -r curriculum/dictionaries fcc/curriculum/dictionaries | |
- name: Debug 2 | |
run: | | |
ls -la fcc/curriculum/challenges | |
echo "----------------" | |
ls -la fcc/curriculum/dictionaries |