Skip to content

Commit

Permalink
Setup gh actions, move to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
stillya authored Aug 27, 2023
1 parent 437a831 commit 0f8ea14
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# 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
name: Build

on:
push:
branches: [ "master" ]
branches: [ "setup-gh-actions" ]
pull_request:
branches: [ "master" ]
branches: [ "setup-gh-actions" ]

jobs:

build:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,7 +25,11 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v ./...

- name: Update coverage report
uses: ncruces/go-coverage-report@v0
run: go test -v --covermode atomic -coverprofile=covprofile ./...

- name: Coverage
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# goidc - authentication with OpenID Connect

[![Build Status](https://github.com/stillya/goidc/actions/workflows/go.yml/badge.svg)](https://github.com/stillya/goidc/actions/workflows/go.yml)
[![Coverage](https://github.com/stillya/goidc/wiki/coverage.svg)](https://raw.githack.com/wiki/stillya/goidc/coverage.html)
[![Coverage](https://coveralls.io/repos/github/stillya/goidc/badge.svg?branch=master)](https://coveralls.io/github/stillya/goidc?branch=setup-gh-actions)

This package provides a simple way to authenticate users with OpenID Connect and help you to create an authentication service.

### NOTE: This package is still in development and not ready for production use.

* Support for different OpenID Connect providers(currently tested with Keycloak and Google, but should work with any other providers)
* Support for different authentication flows (currently tested with Authorization Code Flow, but others in progress)
* Support for different OpenID Connect providers(currently tested with Keycloak and Google, but should work with any other providers).
* Support for different authentication flows (currently tested with Authorization Code Flow, but others in progress).
* JWKS and PEM key support.
* Custom storage for users. Default is PostgreSQL, but you can implement your own storage.

Expand Down

0 comments on commit 0f8ea14

Please sign in to comment.