Skip to content

Commit

Permalink
Upgrade to Node 20 and Foundry v8 (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Jun 3, 2024
1 parent 01f6780 commit e6284c9
Show file tree
Hide file tree
Showing 12 changed files with 301 additions and 376 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = require('@sumup/foundry/eslint')({
module.exports = require('@sumup-oss/foundry/eslint')({
parserOptions: {
requireConfigFile: false,
},
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js v18.14
uses: actions/setup-node@v3
- name: Use Node.js v20.14
uses: actions/setup-node@v4
with:
node-version: 18.14
node-version: 20.14
cache: 'npm'

- name: Install dependencies
Expand All @@ -31,7 +31,7 @@ jobs:
run: npm run test:ci

- name: Upload code coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js v18.14
uses: actions/setup-node@v3
- name: Use Node.js v20.14
uses: actions/setup-node@v4
with:
node-version: 18.14
node-version: 20.14
cache: 'npm'

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .huskyrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@sumup/foundry/husky')();
module.exports = require('@sumup-oss/foundry/husky')();
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14
20.14
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If you feel another member of the community violated our CoC or you are experien

## Troubleshooting

Make sure that you use Node v18.14 _exactly_, otherwise, the unit tests will probably fail. Node's localisation data for the `Intl.NumberFormat` API tends to change between minor versions.
Make sure that you use Node v20.14 _exactly_, otherwise, the unit tests will probably fail. Node's localisation data for the `Intl.NumberFormat` API tends to change between minor versions.

## Release process

Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ module.exports = {
coveragePathIgnorePatterns: ['node_modules'],
setupFilesAfterEnv: ['jest-extended/all', '../jest.setup.js'],
globalSetup: '../jest.global-setup.js',
prettierPath: null,
};
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@sumup/foundry/lint-staged')();
module.exports = require('@sumup-oss/foundry/lint-staged')();
Loading

0 comments on commit e6284c9

Please sign in to comment.