Handle the invalid date the same way moment.js does, with and without the utc plugin #529
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint & Unit Test | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [dev] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ 12, 14, 16, 18 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install -g codecov && npm install | |
- name: Run Lint | |
run: npm run lint | |
- name: Run tests | |
run: npm test && codecov |