Fix workflow 6 #10
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 legcy dependencies | |
run: | | |
cd frontend/ | |
npm install --legacy-peer-deps | |
- name: Install all other deps | |
run: | | |
cd frontend/ | |
npm install | |
- name: Run tests | |
run: | | |
cd frontend/ | |
npm test |