chore: adding validate check tov validate password request payload #78
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
name: Test | |
on: [push] | |
jobs: | |
lint_and_test: | |
strategy: | |
fail-fast: true | |
matrix: | |
go-version: [1.21.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.57 | |
- name: Install Go dependencies | |
run: | | |
go mod download | |
go get github.com/axw/gocov/gocov@latest | |
go get github.com/ory/go-acc@latest | |
go install github.com/ory/go-acc@latest | |
go install github.com/axw/gocov/gocov@latest | |
go get github.com/savannahghi/[email protected] | |
- name: Run test | |
run: | | |
go-acc -o coverage.txt --ignore generated,cmd ./... -- -timeout 60m | |
grep -v "generated.go" coverage.txt > coverage.out | |
go tool cover -html=coverage.out -o coverage.html | |
gocov convert coverage.out > coverage.json | |
gocov report coverage.json > coverage_report.txt | |
tail coverage_report.txt | |
- name: Install goveralls | |
env: | |
GO111MODULE: off | |
run: go get github.com/mattn/goveralls | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=coverage.out -service=github |