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
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Install dependencies
run: go mod download

- name: Vet
run: make vet

- name: Test with Coverage
run: make test-coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
go.work

.idea
/coverage.txt
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

test:
go test ./... -count 1 -race

test-coverage:
go test -coverprofile=coverage.txt ./... -count 1 -race

vet:
go vet ./...

cover:
go test ./... -count 1 -race -cover

gen:
go generate ./...

plantuml-docker:
docker run -v $(shell pwd)/docs:/docs -w /docs ghcr.io/plantuml/plantuml *.pu

plantuml:
plantuml docs/*.pu

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Testdata generator for Go

[![Build Status](https://github.com/kyuff/testdata/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/kyuff/testdata/actions/workflows/go.yml)
[![Report Card](https://goreportcard.com/badge/github.com/kyuff/testdata)](https://goreportcard.com/report/github.com/kyuff/testdata/)
[![Go Reference](https://pkg.go.dev/badge/github.com/kyuff/testdata.svg)](https://pkg.go.dev/github.com/kyuff/testdata)
[![codecov](https://codecov.io/gh/kyuff/testdata/graph/badge.svg?token=HRK7MBJHFN)](https://codecov.io/gh/kyuff/testdata)

Library to generate random and typed data for tests.

## Use case
Expand Down
Loading