Skip to content

Rename branch to main and filter build to reflect badge #48

Rename branch to main and filter build to reflect badge

Rename branch to main and filter build to reflect badge #48

Workflow file for this run

name: test
on: [push]
jobs:
build:
name: Test and Build
runs-on: macos-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16.3
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: Test
run: go test ./pkg/*
- name: Build
run: go build