chore(deps): update all patch dependencies #3075
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: Lint, format and test code | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - api/** | |
| - module/s3-scan-object/** | |
| - terragrunt/** | |
| - .github/workflows/ci_code.yml | |
| env: | |
| TERRAGRUNT_VERSION: v0.31.1 | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:14.19@sha256:962ffbe9f6418387643411b127c1db27465e5a23b9a8849bfaf45fa6323963ce | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: scan-files | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| folder: ["api", "module/s3-scan-object", "terragrunt"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Check for changes | |
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| changes: | |
| - '${{ matrix.folder }}/**' | |
| - '.github/workflows/ci_code.yml' | |
| - name: Setup python | |
| if: ${{ steps.filter.outputs.changes == 'true' && matrix.folder != 'module/s3-scan-object' }} | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Setup node | |
| if: ${{ steps.filter.outputs.changes == 'true' && matrix.folder != 'terragrunt' }} | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: "20" | |
| - name: Setup Terragrunt | |
| if: ${{ steps.filter.outputs.changes == 'true' && matrix.folder == 'terragrunt' }} | |
| run: | | |
| mkdir -p bin | |
| wget -O bin/terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/$TERRAGRUNT_VERSION/terragrunt_linux_amd64 | |
| chmod +x bin/* | |
| echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
| - name: Install dev dependencies | |
| if: ${{ steps.filter.outputs.changes == 'true' }} | |
| working-directory: ${{ matrix.folder }} | |
| run: make install-dev | |
| - name: Install dependencies | |
| if: ${{ steps.filter.outputs.changes == 'true' }} | |
| working-directory: ${{ matrix.folder }} | |
| run: make install | |
| - name: Lint | |
| if: ${{ steps.filter.outputs.changes == 'true' }} | |
| working-directory: ${{ matrix.folder }} | |
| run: make lint-ci | |
| - name: Format | |
| if: ${{ steps.filter.outputs.changes == 'true' }} | |
| working-directory: ${{ matrix.folder }} | |
| run: make fmt-ci | |
| - name: Test | |
| if: ${{ steps.filter.outputs.changes == 'true' }} | |
| working-directory: ${{ matrix.folder }} | |
| env: | |
| SQLALCHEMY_DATABASE_URI: postgresql://postgres:[email protected]/scan-files | |
| SQLALCHEMY_DATABASE_TEST_URI: postgresql://postgres:[email protected]/scan-files | |
| run: make test |