Merge branch 'main' of https://github.com/Jagoda11/react-template #18
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, 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 |