From c237320c730aee4235ead0ad30f5a1b2d8d382fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Wed, 3 Apr 2024 11:07:54 +0200 Subject: [PATCH] fix: ci status badge used travis-ci link which we do not use anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sandor Szücs --- .github/workflows/master.yaml | 22 ++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/master.yaml diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml new file mode 100644 index 0000000..27bb860 --- /dev/null +++ b/.github/workflows/master.yaml @@ -0,0 +1,22 @@ +name: master +on: + push: + branches: + - master +permissions: {} +jobs: + tests: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 + with: + # https://www.npmjs.com/package/semver#caret-ranges-123-025-004 + go-version: '^1.21' + check-latest: true + - run: go version + - run: go vet ./github ./google ./zalando + - run: go test ./... + - run: go test -race ./... diff --git a/README.md b/README.md index 4070b29..94f5779 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # Gin-OAuth2 [![Go Report -Card](https://goreportcard.com/badge/zalando/gin-oauth2)](https://goreportcard.com/report/zalando/gin-oauth2) [![Build Status](https://travis-ci.org/zalando/gin-oauth2.svg?branch=master)](https://travis-ci.org/zalando/gin-oauth2) [![GoDoc](https://godoc.org/github.com/zalando/gin-oauth2?status.svg)](https://godoc.org/github.com/zalando/gin-oauth2) +Card](https://goreportcard.com/badge/zalando/gin-oauth2)](https://goreportcard.com/report/zalando/gin-oauth2) +[![Build Status](https://github.com/zalando/gin-oauth2/actions/workflows/master.yaml/badge.svg)](https://github.com/zalando/gin-oauth2/actions/workflows/master.yaml) +[![GoDoc](https://pkg.go.dev/github.com/zalando/gin-oauth2?status.svg)](https://pkg.go.dev/github.com/zalando/gin-oauth2) Gin-OAuth2 is specially made for [Gin Framework](https://github.com/gin-gonic/gin)