mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 04:26:33 +00:00
Added support for our new workdays endpoint that allows you to pull the number of working days that occur between two dates. In addition to the new endpoint: * chore: upgraded dependencies. * ci: dropped Node.js 10 because it past EOL. * ci: swapped Node.js 15 for 16 now that it's out. * docs: added example of new endpoint.
31 lines
805 B
YAML
31 lines
805 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: ['12', '14', '16']
|
|
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 == '16' }}
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage/lcov.info
|