holidayapi-node/.github/workflows/test.yml
Josh Sherman 930537d53f
chore(deps): bump typescript to 4
Bumped `typescript` up to v4.x as well as a bunch of other dependencies,
including `jest` which had a moderate severity from it's `node-notifier`
dependency. Also added Node.js v15.x to the automated testing.
2020-12-29 16:42:21 -06:00

31 lines
811 B
YAML

name: Test
on: [push, pull_request]
jobs:
test:
name: Test Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['10', '12', '14', '15']
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Node.js Version
run: node --version
- name: NPM Version
run: npm --version
- name: Install Dependencies
run: npm install
- name: Run Linter
run: npm run lint
- name: Run Tests
run: npm run test:coverage
- name: Upload Coverage
if: ${{ matrix.node-version == '15' }}
uses: codecov/codecov-action@v1
with:
file: ./coverage/lcov.info