Skip to content

feat: add retry mechanism for serverless invocation on 502 errors #80

feat: add retry mechanism for serverless invocation on 502 errors

feat: add retry mechanism for serverless invocation on 502 errors #80

Workflow file for this run

name: Run Unit Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-unit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start integration services
uses: hoverkraft-tech/[email protected]
with:
compose-file: |
integration/docker/docker-compose.ci.yml
services: |
redis
postgres
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "UV_PATH=$(which uv)" >> $GITHUB_ENV
- name: Setup License
run: go run cmd/license/generate/main.go
- name: Install dependencies
run: go mod download
- name: Run unit tests
run: go test -v -timeout 1m ./cmd/... ./internal/... ./pkg/...