This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
packwatch/.github/workflows/nodejs.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

name: packwatch CI
2021-06-05 15:15:04 +00:00
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:
2023-03-22 03:24:41 +00:00
node-version: 18
- run: yarn
- run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
2023-03-22 03:24:41 +00:00
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn test:coverage
- name: Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
2020-03-06 20:51:22 +00:00
fail_ci_if_error: false
build:
runs-on: ubuntu-latest
strategy:
matrix:
2023-03-22 03:24:41 +00:00
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn --immutable
- run: yarn build