fix install scripts #36
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: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Clean install dependencies | |
run: | | |
rm -rf node_modules | |
rm -f package-lock.json | |
npm install | |
- name: Build the project | |
run: npm run build | |
- name: Copy data to public directory | |
run: node build-scripts/copyDataToPublic.js | |
- name: Build for browser | |
run: npm run build:browser | |
- name: Run tests | |
run: npm test |