Skip to content

More tests

More tests #13

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.3'
- name: Dependencies
run: |
apt update -yqq
apt install -y redis
- name: Test
run: |
go generate ./...
go test -tags test -v -coverprofile=/tmp/coverage.out ./...
- name: Code coverage
run: |
go tool cover -html=/tmp/coverage.out -o /tmp/coverage.html
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: /tmp/*.html