Skip to content

Commit

Permalink
Update CI to run using node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Sep 2, 2024
1 parent 85e0749 commit 37ef79a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '16.10.0'
node-version: '20'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: '16.10.0'
node-version: '20'
registry-url: https://registry.npmjs.org/
cache: 'yarn'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: ['16.10.0']
node-version: ['20']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.10.0'
node-version: '20'
cache: 'yarn'
- name: Install Dependencies
run: yarn --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion packages/site-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"aws-sdk-client-mock": "^2.0.1",
"jest-fetch-mock": "^3.0.3",
"mock-fs": "^4.14.0",
"mock-fs": "^5.0.0",
"typescript": "^4.8.3"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const mockFs = require('mock-fs');
import { vol } from 'memfs';
import { loadLocalFile } from '../index.js';

describe('GIVEN loadLocalFile', () => {
beforeEach(() => {
mockFs({
vol.fromNestedJSON({
'some/snapshots/mynamespace/mydir': 'some-content',
'some/snapshots/mynamespace/dir/index': 'directory index content'
});
});
afterEach(() => {
mockFs.restore();
vol.reset();
});

test('THEN it can read from a local file', async () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9920,10 +9920,10 @@ mkdirp@^1.0.4:
resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==

mock-fs@^4.14.0:
version "4.14.0"
resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.14.0.tgz#ce5124d2c601421255985e6e94da80a7357b1b18"
integrity sha512-qYvlv/exQ4+svI3UOvPUpLDF0OMX5euvUH0Ny4N5QyRyhNdgAgUrVH3iUINSzEPLvx0kbo/Bp28GJKIqvE7URw==
mock-fs@^5.0.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-5.2.0.tgz#3502a9499c84c0a1218ee4bf92ae5bf2ea9b2b5e"
integrity sha512-2dF2R6YMSZbpip1V1WHKGLNjr/k48uQClqMVb5H3MOvwc9qhYis3/IWbj02qIg/Y8MDXKFF4c5v0rxx2o6xTZw==

moment-mini@^2.24.0:
version "2.29.4"
Expand Down

0 comments on commit 37ef79a

Please sign in to comment.