Skip to content
Merged
Show file tree
Hide file tree
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
158 changes: 0 additions & 158 deletions .github/workflows/docker-build.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/docker-publish.yml

This file was deleted.

29 changes: 20 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

# step 4: run test
- name: Run coverage
run: go test -race -shuffle=on -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
run: go test -race -shuffle=on -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...

# step 5: upload coverage
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -93,16 +93,19 @@ jobs:
- name: Install all Go dependencies
run: go mod download

# step 4: run benchmark
- name: Run benchmarks
run: go test -bench=. -benchmem ./... | tee benchmark.txt

# step 5: download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v4
# step 4: restore previous benchmark history (if exists)
- name: Restore benchmark history
id: benchmark-cache
uses: actions/cache/restore@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
key: ${{ runner.os }}-benchmark-${{ github.ref_name }}
restore-keys: |
${{ runner.os }}-benchmark-

# step 5: run benchmark
- name: Run benchmarks
run: go test -run=^$ -bench=. -benchmem ./... | tee benchmark.txt

# step 6: upload benchmark
- name: Upload benchmark results
Expand All @@ -116,3 +119,11 @@ jobs:
external-data-json-path: ./cache/benchmark-data.json
# Workflow will fail when an alert happens
fail-on-alert: true

# step 7: persist updated benchmark history
- name: Save benchmark history
if: always()
uses: actions/cache/save@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark-${{ github.ref_name }}-${{ github.run_id }}
Loading