diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 146601f..799a18b 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -8,13 +8,13 @@ on: jobs: prepare: name: Prepare - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest outputs: YARN_CACHE_DIR: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }} YARN_VERSION: ${{ steps.yarn-version.outputs.YARN_VERSION }} strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -36,12 +36,12 @@ jobs: run: yarn --immutable build: name: Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - prepare strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -64,12 +64,12 @@ jobs: fi lint: name: Lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - prepare strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -98,12 +98,12 @@ jobs: fi test: name: Test - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - prepare strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [18.x, 20.x, 22.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -116,6 +116,10 @@ jobs: path: ${{ needs.prepare.outputs.YARN_CACHE_DIR }} key: yarn-cache-${{ runner.os }}-${{ needs.prepare.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}-${{ matrix.node-version }} - run: yarn --immutable + - name: Install Playwright dependencies + run: sudo yarn playwright install-deps + - name: Install Playwright + run: yarn playwright install - run: yarn test - name: Require clean working directory shell: bash @@ -126,7 +130,7 @@ jobs: fi check-workflows: name: Check workflows - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Download actionlint @@ -138,7 +142,7 @@ jobs: shell: bash all-jobs-pass: name: All jobs pass - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: - build - lint diff --git a/package.json b/package.json index 060c299..bebb6a5 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@metamask/eslint-config": "^10.0.0", "@metamask/eslint-config-nodejs": "^10.0.0", "@metamask/eslint-config-typescript": "^10.0.0", - "@playwright/test": "^1.27.1", + "@playwright/test": "^1.49.1", "@types/node": "^14.14.5", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", @@ -57,7 +57,7 @@ "eslint-plugin-jsdoc": "^39.3.25", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.2.1", - "playwright": "^1.27.1", + "playwright": "^1.49.1", "prettier": "^2.7.1", "prettier-plugin-packagejson": "^2.3.0", "rimraf": "^3.0.2", @@ -65,7 +65,7 @@ }, "packageManager": "yarn@3.2.4", "engines": { - "node": "^16.20 || ^18.16 || >=20" + "node": "^18.18 || ^20.14 || >=22" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index fdbfa52..fe52cc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -171,7 +171,7 @@ __metadata: "@metamask/eslint-config-nodejs": ^10.0.0 "@metamask/eslint-config-typescript": ^10.0.0 "@metamask/utils": ^9.0.0 - "@playwright/test": ^1.27.1 + "@playwright/test": ^1.49.1 "@types/node": ^14.14.5 "@typescript-eslint/eslint-plugin": ^5.41.0 "@typescript-eslint/parser": ^5.41.0 @@ -182,7 +182,7 @@ __metadata: eslint-plugin-jsdoc: ^39.3.25 eslint-plugin-node: ^11.1.0 eslint-plugin-prettier: ^4.2.1 - playwright: ^1.27.1 + playwright: ^1.49.1 prettier: ^2.7.1 prettier-plugin-packagejson: ^2.3.0 rimraf: ^3.0.2 @@ -236,8 +236,8 @@ __metadata: linkType: hard "@metamask/utils@npm:^9.0.0": - version: 9.0.0 - resolution: "@metamask/utils@npm:9.0.0" + version: 9.3.0 + resolution: "@metamask/utils@npm:9.3.0" dependencies: "@ethereumjs/tx": ^4.2.0 "@metamask/superstruct": ^3.1.0 @@ -248,7 +248,7 @@ __metadata: pony-cause: ^2.1.10 semver: ^7.5.4 uuid: ^9.0.1 - checksum: 5dcb9d47c4768c33d451cc74c83207726c68b1340be1d091ca44105564f0ba0703026d357de7996de4459ac41cd420a0eb1f06db32f5ebbeeee581393f45fd44 + checksum: f720b0f7bdd46054aa88d15a9702e1de6d7200a1ca1d4f6bc48761b039f1bbffb46ac88bc87fe79e66128c196d424f3b9ef071b3cb4b40139223786d56da35e0 languageName: node linkType: hard @@ -411,15 +411,14 @@ __metadata: languageName: node linkType: hard -"@playwright/test@npm:^1.27.1": - version: 1.27.1 - resolution: "@playwright/test@npm:1.27.1" +"@playwright/test@npm:^1.49.1": + version: 1.49.1 + resolution: "@playwright/test@npm:1.49.1" dependencies: - "@types/node": "*" - playwright-core: 1.27.1 + playwright: 1.49.1 bin: playwright: cli.js - checksum: 92f219a78c21da03c6599d92c313c914e73cc374306366130fb3bd4701555179394ec5a3000d9375ce59f5a03c00f20d1ddaae50c85583ce475e17795a622699 + checksum: cdbd16df3d773dc8e522d79b4b961e25c2e1b1d4f3ec45eb711078ab5d11bca47caafe833e2be2f923328fbd012405a9ee31d9b449d184077598546a36847e69 languageName: node linkType: hard @@ -2229,6 +2228,25 @@ __metadata: languageName: node linkType: hard +"fsevents@npm:2.3.2": + version: 2.3.2 + resolution: "fsevents@npm:2.3.2" + dependencies: + node-gyp: latest + checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f + conditions: os=darwin + languageName: node + linkType: hard + +"fsevents@patch:fsevents@2.3.2#~builtin": + version: 2.3.2 + resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin::version=2.3.2&hash=18f3a7" + dependencies: + node-gyp: latest + conditions: os=darwin + languageName: node + linkType: hard + "function-bind@npm:^1.1.1, function-bind@npm:^1.1.2": version: 1.1.2 resolution: "function-bind@npm:1.1.2" @@ -3817,23 +3835,27 @@ __metadata: languageName: node linkType: hard -"playwright-core@npm:1.27.1": - version: 1.27.1 - resolution: "playwright-core@npm:1.27.1" +"playwright-core@npm:1.49.1": + version: 1.49.1 + resolution: "playwright-core@npm:1.49.1" bin: - playwright: cli.js - checksum: fd65d3eb29978e0e7a755158625e8922a66ca9d599b7c24ddf920822b261d81c51a5964ef8e0e5ed9b2b12dc64541c5949b6a898d965e107f43261964e8c29a0 + playwright-core: cli.js + checksum: a940f4b10ff1de033b4b8594b5104b02849a892d9adda0d42330a872cd3d8d287ffd2b01fc33f33ccd34f8904bb8ae8220b878b62e899f3d9bcd1b0945ab45c7 languageName: node linkType: hard -"playwright@npm:^1.27.1": - version: 1.27.1 - resolution: "playwright@npm:1.27.1" +"playwright@npm:1.49.1, playwright@npm:^1.49.1": + version: 1.49.1 + resolution: "playwright@npm:1.49.1" dependencies: - playwright-core: 1.27.1 + fsevents: 2.3.2 + playwright-core: 1.49.1 + dependenciesMeta: + fsevents: + optional: true bin: playwright: cli.js - checksum: 7bb31998e1783f96443bd1a38f0d7838d1b6fd0cf410ac83ef480c0f0e3e930b809b7e42ccda35b9e272c84aaa8f15e0ee8bdddc19a60b224eecc57d285bf92f + checksum: c136d42d625e32614f90e5228a165dc8be48c5bfb52aca9210c6ff04161a409dbe42fe5ae4f05a2653f6a1b836876a04d3b0f24bcbbc053d1509c1d605b7c8d5 languageName: node linkType: hard