Skip to content

Feat: better cache handling without external modules #19

Feat: better cache handling without external modules

Feat: better cache handling without external modules #19

name: Lint / Test
on:
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
steps:
- name: Set up NASM (for imagemin binary builds)
uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test:coverage
# Save coverage report in Coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info