Skip to content

Merge branch 'main' of https://github.com/Jagoda11/react-template #18

Merge branch 'main' of https://github.com/Jagoda11/react-template

Merge branch 'main' of https://github.com/Jagoda11/react-template #18

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: πŸ› οΈ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: πŸ”„ Ensure package-lock.json is up-to-date
run: npm install --package-lock-only --ignore-scripts
- name: πŸ“¦ Install dependencies
run: npm ci
- name: 🐢 Set up Husky
run: npx husky install
- name: πŸ–‹οΈ Format code
run: npm run format
- name: 🧹 Lint code
run: npm run lint
- name: πŸ”¨ Build
run: npm run build
- name: πŸ§ͺ Test with coverage
run: npm run test