mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 04:26:33 +00:00
This started as a feature request for our upstream API (closes #33) that led to a bit of rework to help make the library a bit more flexible in terms of not needing modification when something on the API changes. This update also includes your typical round of dependency updates and a bit of preemptive planning by way of dropping support for Node.js as we're on the cusp of it being out of maintenance and the release of Node.js v18.
31 lines
799 B
YAML
31 lines
799 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: ['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
|