Skip to content

feat: Add integration tests #1

feat: Add integration tests

feat: Add integration tests #1

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Tests with Coverage
run: |
go test -v -coverprofile=coverage.out.tmp ./...
cat cover.out.tmp | grep -v "_mock.go" > cover.out
go tool cover -func=cover.out
go tool cover -html=cover.out -o cover.html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage
uses: actions/upload-artifact@v2
with:
name: coverage
path: cover.html