Skip to content

Merge pull request #60 from Jmainguy/sqliteTest #1

Merge pull request #60 from Jmainguy/sqliteTest

Merge pull request #60 from Jmainguy/sqliteTest #1

Workflow file for this run

on:
push:
name: push
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29
args: --timeout=5m
working-directory: ./tests
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.16.3'
- name: Get Build Tools
run: |
GO111MODULE=on go get github.com/ory/go-acc
- name: Add $GOPATH/bin to $PATH
run: |
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- name: git checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install dependencies
working-directory: ./tests
run: |
go mod download
- name: Run Unit tests
working-directory: ./tests
run: |
go-acc .
build:
name: Lint and build
runs-on: ubuntu-latest
steps:
- name: install go
uses: actions/setup-go@v2
with:
go-version: '1.16.3'
- name: git checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: install lint
working-directory: ./tests
run: GO111MODULE=off go get golang.org/x/lint/golint
- name: run golint and go fmt
working-directory: ./tests
run: ./lint.sh
- name: go build
working-directory: ./tests
run: go build