Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
23 changes: 14 additions & 9 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,20 +17,24 @@ jobs:
check-license:
name: Check License
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- 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"
Expand All @@ -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:
Expand All @@ -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)"
Loading