feat: Introduce 'allow_idp_initiated' SAML Connection property #987
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: [$default-branch] | |
name: tests | |
env: | |
GO111MODULE: on | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.16.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v3 | |
- name: Cache go modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Run go fmt | |
if: runner.os != 'Windows' | |
run: diff -u <(echo -n) <(gofmt -d -s .) | |
- name: Run go vet | |
run: go vet ./... | |
- name: Run go test | |
run: go test -v -race -coverprofile coverage.out -covermode atomic ./... | |
- name: Run coverage | |
if: runner.os != 'Windows' | |
run: | | |
EXPECTED_COVER=95 | |
TOTAL_COVER=`go tool cover -func=coverage.out | grep total | grep -Eo '[0-9]+\.[0-9]+'` | |
echo "Total coverage was: $TOTAL_COVER %" | |
echo "Expected coverage: $EXPECTED_COVER %" | |
- name: Run integration tests | |
env: | |
CLERK_API_URL: ${{ secrets.CLERK_API_URL }} | |
CLERK_API_KEY: ${{ secrets.CLERK_API_KEY }} | |
CLERK_SESSION_TOKEN: ${{ secrets.CLERK_SESSION_TOKEN }} | |
CLERK_SESSION_ID: ${{ secrets.CLERK_SESSION_ID }} | |
run: go test -tags=integration ./tests/integration |