build(deps): Bump google.golang.org/grpc from 1.77.0 to 1.78.0 #405
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: PR Workflow | |
| on: | |
| pull_request: | |
| types: [ synchronize, opened, reopened] | |
| branches: [ 'main' ] | |
| env: | |
| TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | |
| jobs: | |
| linter: | |
| name: Linter | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 # Sets a timeout of 10 minutes for this job (default is 1 minute) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25' | |
| cache: false | |
| - name: Check Go Formatting | |
| run: | | |
| files=$(gofmt -l .) && echo $files && [ -z "$files" ] | |
| - name: Golang CI Lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.6.2 # Specify the golangci-lint version, so we are stable | |
| args: --timeout 10m # Increase the timeout to 10 minutes | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Free Disk Space | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
| with: | |
| # this might remove tools that are actually needed, | |
| tool-cache: false | |
| # all of these default to true, but feel free to set to | |
| # "false" if necessary for your workflow | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: true | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25' | |
| cache-dependency-path: go.sum | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Unit tests | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
| AWS_S3_VECTOR_BUCKET: ${{ secrets.AWS_S3_VECTOR_BUCKET }} | |
| run: | | |
| make test_unit | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Extract build info | |
| id: extract_build_info | |
| run: | | |
| echo "tag=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT | |
| echo "commit_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Set Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| # ttl.sh is an anonymous & ephemeral Docker image registry, | |
| # check https://ttl.sh for more infos | |
| images: | | |
| ttl.sh/qdrant-migration-${{ steps.extract_build_info.outputs.commit_short }} | |
| tags: | | |
| type=raw,value=1h | |
| - name: Build and push container images | |
| uses: docker/build-push-action@v6 | |
| id: build-and-push | |
| with: | |
| context: . | |
| push: true | |
| load: false | |
| sbom: true | |
| provenance: false | |
| platforms: linux/amd64,linux/arm64 | |
| labels: ${{ steps.meta.outputs.labels }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| build-args: | | |
| VERSION=dev | |
| BUILD=${{ steps.extract_build_info.outputs.commit_short }} | |
| - name: Run Trivy vulnerability scanner | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| image-ref: ttl.sh/qdrant-migration-${{ steps.extract_build_info.outputs.commit_short }}:1h | |
| format: 'table' | |
| exit-code: '1' | |
| ignore-unfixed: true | |
| vuln-type: 'os,library' | |
| severity: 'CRITICAL,HIGH' | |
| - name: Setup BATS | |
| uses: mig4/setup-bats@v1 | |
| with: | |
| bats-version: 1.11.1 | |
| - name: Integration tests | |
| run: make test_integration DEV_IMAGE_REF=ttl.sh/qdrant-migration-${{ steps.extract_build_info.outputs.commit_short }}:1h |