Skip to content

Merge pull request #39 from kichristensen/correctCheckForPR #126

Merge pull request #39 from kichristensen/correctCheckForPR

Merge pull request #39 from kichristensen/correctCheckForPR #126

Workflow file for this run

name: Test
on: [push,pull_request]
env:
MAGEFILE_VERBOSE: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Configure Agent
run: go run mage.go ConfigureAgent
- name: Vet
run: mage Vet
- name: Lint
run: mage Lint
- name: Build
run: mage Build
- name: Test
run: mage Test