diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5678556..1c59208 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..cc8439e --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -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