mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 04:26:33 +00:00
test: drop end of life Node.js version
* test: Dropped Node v13.x since it's now past it's expiration. * test: Migrated from Travis CI to GitHub Actions. * test: Migrated from Coveralls to CodeCov. * docs: Dropped over 1.x stuff from the read me. * perf: Updated dependencies and rebuilt against latest TypeScript. * feat: Bumped major version number due to Node.js support changing.
This commit is contained in:
parent
2edef851ca
commit
07988d8c71
10 changed files with 1826 additions and 1880 deletions
31
.github/workflows/test.yml
vendored
Normal file
31
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
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']
|
||||
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 == '14' }}
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
file: ./coverage/lcov.info
|
Loading…
Add table
Add a link
Reference in a new issue