Skip to content

Add context methods to Clock interface #45

Add context methods to Clock interface

Add context methods to Clock interface #45

Workflow file for this run

name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
goversion: [1.18, 1.19]
steps:
- name: Set up Go ${{matrix.goversion}} on ${{matrix.os}}
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: gofmt
run: |
[[ -z $(gofmt -l $(find . -name '*.go') ) ]]
- name: Get dependencies
run: go mod download
- name: Vet
run: go vet -mod=readonly ./...
- name: Test
run: go test -mod=readonly -v -count 2 ./...
- name: Race Test
run: go test -race -mod=readonly -v -count 2 ./...