Skip to content

Fixes TestUserSignup conditional typo #8

Fixes TestUserSignup conditional typo

Fixes TestUserSignup conditional typo #8

name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
audit:
runs-on: ubuntu-latest
steps:
- run: echo "The job was triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Github."
- run: echo "The branch from which this job was triggered is ${{ github.ref }} and the repository is ${{ github.repository }}."
- name: Checkout repository code
uses: actions/checkout@v2
- run: echo "The ${{ github.repository }} repository has been cloned to the runner.}}"
- run: echo "The repository has been copied to the path ${{ github.workspace }} on the runner."
- name: Setup Go v.1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: List files after build
run: ls -l ${{ github.workspace }}
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint ./...
- name: Test
run: go test -race -vet=off ./...
- run: echo "This job's status is ${{ job.status }}"