Skip to content

Merge pull request #65 from rokala/feature/58-remove-duplicate-links #82

Merge pull request #65 from rokala/feature/58-remove-duplicate-links

Merge pull request #65 from rokala/feature/58-remove-duplicate-links #82

name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache dependencies
id: cache
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
- name: Check format
run: npm run format:check
- name: Check lint
run: npm run lint:check
- name: Run tests
run: npm test