Refactor CatFile batch implementation and introduce batch-command for git 2.36 #33329
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: db-tests | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| files-changed: | |
| uses: ./.github/workflows/files-changed.yml | |
| test-mssql1: | |
| if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' | |
| needs: files-changed | |
| runs-on: ubuntu-latest | |
| services: | |
| mssql: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| env: | |
| ACCEPT_EULA: Y | |
| MSSQL_PID: Standard | |
| SA_PASSWORD: MwantsaSecurePassword1 | |
| ports: | |
| - "1433:1433" | |
| devstoreaccount1.azurite.local: # https://github.com/Azure/Azurite/issues/1583 | |
| image: mcr.microsoft.com/azure-storage/azurite:latest | |
| ports: | |
| - 10000:10000 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| - name: Add hosts to /etc/hosts | |
| run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql devstoreaccount1.azurite.local" | sudo tee -a /etc/hosts' | |
| - run: make deps-backend | |
| - run: make backend | |
| env: | |
| TAGS: bindata | |
| - name: run tests | |
| run: make test-mssql | |
| timeout-minutes: 50 | |
| env: | |
| TAGS: bindata | |
| USE_REPO_TEST_DIR: 1 | |
| test-mssql2: | |
| if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' | |
| needs: files-changed | |
| runs-on: ubuntu-latest | |
| services: | |
| mssql: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| env: | |
| ACCEPT_EULA: Y | |
| MSSQL_PID: Standard | |
| SA_PASSWORD: MwantsaSecurePassword1 | |
| ports: | |
| - "1433:1433" | |
| devstoreaccount1.azurite.local: # https://github.com/Azure/Azurite/issues/1583 | |
| image: mcr.microsoft.com/azure-storage/azurite:latest | |
| ports: | |
| - 10000:10000 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| - name: Add hosts to /etc/hosts | |
| run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql devstoreaccount1.azurite.local" | sudo tee -a /etc/hosts' | |
| - run: make deps-backend | |
| - run: make backend | |
| env: | |
| TAGS: bindata | |
| - name: run tests | |
| run: make test-mssql | |
| timeout-minutes: 50 | |
| env: | |
| TAGS: bindata | |
| USE_REPO_TEST_DIR: 1 | |
| test-mssql3: | |
| if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' | |
| needs: files-changed | |
| runs-on: ubuntu-latest | |
| services: | |
| mssql: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| env: | |
| ACCEPT_EULA: Y | |
| MSSQL_PID: Standard | |
| SA_PASSWORD: MwantsaSecurePassword1 | |
| ports: | |
| - "1433:1433" | |
| devstoreaccount1.azurite.local: # https://github.com/Azure/Azurite/issues/1583 | |
| image: mcr.microsoft.com/azure-storage/azurite:latest | |
| ports: | |
| - 10000:10000 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| - name: Add hosts to /etc/hosts | |
| run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql devstoreaccount1.azurite.local" | sudo tee -a /etc/hosts' | |
| - run: make deps-backend | |
| - run: make backend | |
| env: | |
| TAGS: bindata | |
| - name: run tests | |
| run: make test-mssql | |
| timeout-minutes: 50 | |
| env: | |
| TAGS: bindata | |
| USE_REPO_TEST_DIR: 1 |