fix(Basket): fix mobile view bugs (#28) #16
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: "React CI" | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: "development" | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Install client dependencies | |
run: cd client && npm install | |
- name: Lint code (eslint) | |
run: npm run lint | |
- name: Run Jest tests | |
run: cd client && npm test -- --passWithNoTests | |
- name: Build React app | |
run: cd client && npm run build | |
- name: Upload coverage reports (optional) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: ./coverage |