diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5678556..b8d9c34 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,10 +11,17 @@ updates: opentelemetry: patterns: - "@opentelemetry/*" + update-types: + - "minor" + - "patch" # Group Google Cloud packages together google-cloud: patterns: - "@google-cloud/*" + ignore: + # Ignore OpenTelemetry major versions (breaking changes) + - dependency-name: "@opentelemetry/*" + update-types: ["version-update:semver-major"] # Monitor GitHub Actions - package-ecosystem: "github-actions" diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..88418a8 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,24 @@ +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 + + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + - run: pip install pre-commit + - run: pre-commit run --all-file + s diff --git a/package-lock.json b/package-lock.json index 6266b6f..4236503 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "gcp-metrics-action", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gcp-metrics-action", - "version": "1.0.0", + "version": "0.1.0", "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.11.1",