From d2c5df10cb20bbb4fe8df466705af45d80089f87 Mon Sep 17 00:00:00 2001 From: Bryan Kendall Date: Fri, 4 Dec 2026 10:12:43 -0800 Subject: [PATCH] chore(ci): group Dependabot minor/patch updates and clean up CI workflow --- .github/dependabot.yml | 18 ++++++++++++++++++ .github/workflows/node-test.yml | 23 ++++++++++++++--------- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3deee26f..1c9170e0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,25 @@ updates: directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 7 + groups: + github-actions-minor-and-patch: + patterns: + - "*" + update-types: + - "minor" + - "patch" - package-ecosystem: "npm" directory: "/" schedule: interval: "weekly" + cooldown: + default-days: 7 + groups: + npm-minor-and-patch: + patterns: + - "*" + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index 1dc1c9a2..0051275d 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -1,12 +1,14 @@ name: CI Tests on: - - pull_request - - push + pull_request: + push: + branches: + - main concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read @@ -15,6 +17,7 @@ jobs: check-license: name: Check License runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -22,13 +25,16 @@ jobs: - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version: "^1.18.0" - - run: go install github.com/google/addlicense@latest + cache: false + - run: go install github.com/google/addlicense@v1.2.0 - run: addlicense -check -c "Google LLC" -l MIT src examples test: name: Run Tests runs-on: ubuntu-latest + timeout-minutes: 15 strategy: + fail-fast: false matrix: node-version: - "22" @@ -47,13 +53,12 @@ jobs: - run: npm i --global npm@^11.7.0 - run: npm ci - run: npm test - - run: npm outdated - continue-on-error: true + - run: npm outdated || true check-package-lock: name: Check Package Lock runs-on: ubuntu-latest - + timeout-minutes: 10 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -66,4 +71,4 @@ jobs: - run: npm i --global npm@^11.7.0 - run: npm install --package-lock-only --ignore-scripts - - run: "git diff --exit-code -- package-lock.json || (echo 'Error: package-lock.json is changed during npm install! Please make sure to use npm >= 6.9.0 and commit package-lock.json.' && false)" + - run: "git diff --exit-code -- package-lock.json || (echo 'Error: package-lock.json is changed during npm install! Please make sure to use npm >= 11.7.0 and commit package-lock.json.' && false)"