Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,7 @@ on:
- '*'

jobs:
test-without-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Test quickly without Docker
run: go test -v ./...

test-with-docker:
# We don't need to run this longer test if the previous one already failed.
needs: test-without-docker
test:
runs-on: ubuntu-latest
services:
dind:
Expand All @@ -40,15 +26,15 @@ jobs:
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Run tests with Docker and calculate coverage
- name: Run tests and calculate coverage
run: |
export GITHUB_ACTIONS=1
export POSTGRES_CONTAINER=1

echo "Running tests..."
go test -v \
-coverpkg=./internal/... \
-coverprofile=profile.cov ./internal/...
-coverprofile=profile.cov ./...

# Exclude e2e files from the coverage profile so they don't
# count against the coverage percentage.
Expand Down