Refactor: Fix CLI issues #47
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: Build and test the freeCodeCamp zim file | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
integration-test: | |
runs-on: ubuntu-latest | |
name: Build latest zim file | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- run: yarn install --frozen-lockfile | |
working-directory: client | |
- run: yarn lint | |
working-directory: client | |
- run: yarn build | |
working-directory: client | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
cache-dependency-path: '**/requirements.pip' | |
- run: make setup | |
- run: make fetch | |
- run: make prebuild | |
# Full integration test using the fetch/prebuild markdown as a fixture | |
- run: yarn test --run | |
working-directory: client | |
- run: make zim |