Fix workflow 4 #8
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.15.1' | |
- name: Clear npm cache | |
run: npm cache clean --force | |
- name: Install npm | |
run: npm install -g [email protected] # Adjust based on your local version | |
- name: Install dependencies | |
run: | | |
cd frontend/ | |
npm install --legacy-peer-deps | |
- name: List directory contents | |
run: ls -R frontend/ | |
- name: Print npm config | |
run: npm config ls | |
- name: Run tests | |
run: | | |
cd frontend/ | |
npm test |