Merge pull request #58 from TiagoM13/feature/pokedex #39
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 and Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- 'feature/*' | |
- 'refactor/*' | |
- 'fix/*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.13.x | |
cache: npm | |
- name: Clear npm cache | |
run: npm cache clean --force | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linting and tests | |
run: | | |
npm run lint | |
npm test |