Skip to content

with retro

with retro #107

Workflow file for this run

name: CI
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: npm
- run: npm ci
- run: npm test
- run: npm run lint
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: built-tests
path: dist/test/
matrix:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
node-version: [ 12.x, 14.x, 15.x ]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v3
with:
name: built-tests
path: built-tests
- run: npm --prefix built-tests install
- run: npm --prefix built-tests test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm ci
- run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .coverage