Skip to content

Commit

Permalink
ci: pin Node to v14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed May 13, 2020
1 parent ab962e4 commit eba9323
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js v13
- name: Use Node.js v14.2
uses: actions/setup-node@v1
with:
node-version: 13.x
node-version: 14.2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13
14.2
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ If you feel another member of the community violated our CoC or you are experien
- Continously transpile and typecheck the code: `yarn start`
- Continously run the tests: `yarn test`
- Run the linter: `yarn lint`

## Troubleshooting

Make sure that you use Node v13.11 _exactly_, otherwise, the unit tests will probably fail. Node's localisation data for the `Intl.NumberFormat` API tends to change between minor versions.
24 changes: 20 additions & 4 deletions src/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`Format currency should format a currency for 'GR' 1`] = `"€123,456.79

exports[`Format currency should format a currency for 'HR' 1`] = `"123.456,79 HRK"`;

exports[`Format currency should format a currency for 'HU' 1`] = `"123456,79 Ft"`;
exports[`Format currency should format a currency for 'HU' 1`] = `"123 456,79 Ft"`;

exports[`Format currency should format a currency for 'IE' 1`] = `"€123,456.79"`;

Expand Down Expand Up @@ -110,7 +110,7 @@ exports[`Format number should format a number for 'GR' 1`] = `"123,456.789"`;

exports[`Format number should format a number for 'HR' 1`] = `"123.456,789"`;

exports[`Format number should format a number for 'HU' 1`] = `"123456,789"`;
exports[`Format number should format a number for 'HU' 1`] = `"123 456,789"`;

exports[`Format number should format a number for 'IE' 1`] = `"123,456.789"`;

Expand Down Expand Up @@ -681,7 +681,15 @@ exports[`Format to parts currency should format a currency for 'HU' 1`] = `
Array [
Object {
"type": "integer",
"value": "123456",
"value": "123",
},
Object {
"type": "group",
"value": " ",
},
Object {
"type": "integer",
"value": "456",
},
Object {
"type": "decimal",
Expand Down Expand Up @@ -1767,7 +1775,15 @@ exports[`Format to parts number should format a number for 'HU' 1`] = `
Array [
Object {
"type": "integer",
"value": "123456",
"value": "123",
},
Object {
"type": "group",
"value": " ",
},
Object {
"type": "integer",
"value": "456",
},
Object {
"type": "decimal",
Expand Down

0 comments on commit eba9323

Please sign in to comment.