name: packwatch CI
on:
pull_request:
push:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 12.x
uses: actions/setup-node@v3
with:
node-version: 12.x
- run: yarn
- run: yarn lint
test:
strategy:
matrix:
node-version: [12.x, 14.x]
- name: Use Node.js ${{ matrix.node-version }}
node-version: ${{ matrix.node-version }}
- run: yarn test:coverage
- name: Coverage
uses: codecov/codecov-action@v1
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
build:
- run: yarn --immutable
- run: yarn build