Skip to content

fix(Basket): fix mobile view bugs (#28) #16

fix(Basket): fix mobile view bugs (#28)

fix(Basket): fix mobile view bugs (#28) #16

Workflow file for this run

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