Skip to content

Commit

Permalink
chore: handle 8.x fixture regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jun 29, 2020
1 parent 8a31051 commit 4156a23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/ci.yml
Expand Up @@ -8,40 +8,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12, 14]
nodejs: [6, 8, 10, 12, 14]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1

- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}

- name: (env) pnpm
run: curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node

- name: (lerna) restore
uses: actions/cache@master
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install
run: |
pnpm install
pnpm add -g nyc
- name: Build
run: pnpm run build
npm install
npm add -g nyc
- name: Test w/ Coverage
run: nyc --include=packages pnpm test
run: nyc --include=src npm test

- name: Report
if: matrix.nodejs >= 12
if: matrix.nodejs >= 14
run: |
nyc report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
node_modules
.DS_Store
*-lock.*
*.lock
*.log
dist
2 changes: 1 addition & 1 deletion test/index.js
Expand Up @@ -43,7 +43,7 @@ test('customize', t => {

const stamp = fn(tmpl, {
// new key
MMMM: d => d.toLocaleString('default', { month: 'long' }),
MMMM: d => d.toLocaleString('en', { month: 'long' }),
// override key
DD: d => d.getDate()
});
Expand Down

0 comments on commit 4156a23

Please sign in to comment.