diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index eeb78f8..f652e1f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,6 +6,11 @@ name: Install Dependencies, Lint, Build and Test on: [pull_request] +# Cancel a pull request's in-progress run when a newer commit is pushed. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: name: Lint @@ -15,34 +20,28 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Use Node.js 24 + - name: Set up Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26 + node-version-file: .nvmrc - name: Install Dependencies run: npm ci - name: Lint run: npm run lint test: - name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - # When node version is updated, update the version in the GitHub repository settings (admin access required): - # Branches -> Edit `main` -> Protect matching branches -> - # Require status checks to pass before merging -> - # Search for the new version -> Add them to the list -> - # Remove the old version from the list -> Save changes - node_version: [24] os: [windows-latest, macOS-latest] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Use Node.js ${{ matrix.node_version }} + - name: Set up Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: ${{ matrix.node_version }} + node-version-file: .nvmrc - name: Install Dependencies run: npm ci - name: Build @@ -56,10 +55,10 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Use Node.js 24 + - name: Set up Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26 + node-version-file: .nvmrc - name: Install Dependencies run: npm ci - name: Install Playwright Browsers diff --git a/.github/workflows/capacitor-sync.yml b/.github/workflows/capacitor-sync.yml index 345953f..9c02db7 100644 --- a/.github/workflows/capacitor-sync.yml +++ b/.github/workflows/capacitor-sync.yml @@ -26,10 +26,10 @@ jobs: with: ref: ${{ github.ref_name }} token: ${{ secrets.IONITRON_GITHUB_TOKEN }} - - name: Configure Node + - name: Set up Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 26 + node-version-file: .nvmrc - name: Install Dependencies run: npm ci - name: Build diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..6f4247a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +26 diff --git a/package-lock.json b/package-lock.json index 0734c43..3a8edc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "@ionic/eslint-config": "^0.5.0", "@ionic/prettier-config": "^4.0.0", "@playwright/test": "^1.64.1", - "@types/node": "^24.19.2", + "@types/node": "^26.6.6", "angular-eslint": "^22.6.0", "eslint": "^10.13.0", "jsdom": "^31.0.0", @@ -4487,13 +4487,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.19.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", - "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": ">=7.24.0 <7.24.7" + "undici-types": "~8.9.0" } }, "node_modules/@types/slice-ansi": { @@ -9736,9 +9736,9 @@ } }, "node_modules/undici-types": { - "version": "7.24.6", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", - "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 4999efa..0682b4f 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@ionic/eslint-config": "^0.5.0", "@ionic/prettier-config": "^4.0.0", "@playwright/test": "^1.64.1", - "@types/node": "^24.19.2", + "@types/node": "^26.6.6", "angular-eslint": "^22.6.0", "eslint": "^10.13.0", "jsdom": "^31.0.0", diff --git a/renovate.json b/renovate.json index af1ac7f..1638d6d 100644 --- a/renovate.json +++ b/renovate.json @@ -63,11 +63,6 @@ ], "groupName": "dev-tools" }, - { - "matchPackageNames": ["@types/node"], - "allowedVersions": "<25", - "description": "Keep Node's types on the major version CI runs (24)" - }, { "description": "Automerge minor and patch updates once CI passes. Majors and 0.x packages, where a minor can break, still need review.", "matchUpdateTypes": ["minor", "patch"],