1
0
Fork 0
mirror of https://github.com/imjasonh/gcp-metrics-action synced 2026-07-16 12:12:03 +00:00

Merge pull request #21 from imjasonh/pre-commit

enforce pre-commit in CI, one big npm update group
This commit is contained in:
Jason Hall 2025-11-05 21:52:43 -05:00 committed by GitHub
commit 868e4c77ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 8 deletions

View file

@ -5,16 +5,12 @@ updates:
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
open-pull-requests-limit: 3
groups:
# Group OpenTelemetry packages together
opentelemetry:
# Group all packages together
all:
patterns:
- "@opentelemetry/*"
# Group Google Cloud packages together
google-cloud:
patterns:
- "@google-cloud/*"
- "*"
# Monitor GitHub Actions
- package-ecosystem: "github-actions"

28
.github/workflows/pr-checks.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: pre-commit
on:
pull_request:
branches: [ main ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- name: Set up Python for pre-commit
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit on all files
run: pre-commit run --all-files