feat(herbarium): run on the new Herbarium Interface #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI build | |
on: | |
pull_request: | |
branches: [ master, next, beta, alpha ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Use Node.js ${{ matrix.node-version }} | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Installing dependencies | |
run: npm i --ignore-scripts | |
- name: Running tests | |
run: | | |
npm test | |
npx nyc --reporter=lcov npm test && npx codecov | |
env: | |
CI: true | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
- name: Running Linter - ESLint | |
run: npm run lint | |