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:
commit
868e4c77ce
2 changed files with 32 additions and 8 deletions
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
|
|
@ -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
28
.github/workflows/pr-checks.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue