fix: set correct mongodb password to config #51
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre-commit | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for pre-commit hooks | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Set up OpenTofu | |
| uses: opentofu/setup-opentofu@v1 | |
| with: | |
| tofu_version: latest | |
| - uses: wagoid/commitlint-github-action@v6 | |
| with: | |
| failOnWarnings: true # Strict mode | |
| configFile: .github/.commitlintrc.mjs | |
| - name: Run pre-commit on PRs | |
| if: github.event_name == 'pull_request' | |
| uses: pre-commit/action@v3.0.1 | |
| env: | |
| PCT_TFPATH: tofu | |
| - name: Run pre-commit on push to main | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: pre-commit/action@v3.0.1 | |
| env: | |
| PCT_TFPATH: tofu | |
| SKIP: no-commit-to-branch |