feat: analizar cuatri #14
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: Lint, Format, and Test | |
on: | |
push: | |
branches: | |
- dolly-next | |
pull_request: | |
branches: | |
- dolly-next | |
jobs: | |
lint-format-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout code | |
uses: actions/checkout@v2 | |
- name: 📦 Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: ⚙️ Cache Node Modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: ⚙️ Install dependencies | |
run: npm ci | |
- name: 🧹 Lint and Format | |
run: npm run type-check && npm run lint-staged | |
- name: ✅ Run Tests | |
run: npm run test |