mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 12:36:33 +00:00
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.
31 lines
811 B
YAML
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
|