From 40342698fa3b94111ebeb8adb5a620694ce2aa90 Mon Sep 17 00:00:00 2001 From: malivvan Date: Sun, 14 Jul 2024 20:08:49 +0200 Subject: [PATCH] added tests and badges --- .github/test.yml | 22 ++++++++++++++++++++++ README.md | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/test.yml diff --git a/.github/test.yml b/.github/test.yml new file mode 100644 index 0000000..eb64cad --- /dev/null +++ b/.github/test.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Test + run: go test -v ./... \ No newline at end of file diff --git a/README.md b/README.md index 51d0e42..be636f4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# UUID +# uuid [![Go Reference](https://pkg.go.dev/badge/github.com/malivvan/uuid.svg)](https://pkg.go.dev/github.com/malivvan/uuid) [![Release](https://img.shields.io/github/v/release/malivvan/uuid.svg?sort=semver)](https://github.com/malivvan/uuid/releases/latest) ![Tests](https://img.shields.io/github/actions/workflow/status/malivvan/uuid/test.yml?label=tests) [![Go Report Card](https://goreportcard.com/badge/github.com/malivvan/uuid)](https://goreportcard.com/report/github.com/malivvan/uuid) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) an alternative to the `github.com/google/uuid` package ## Installation