Skip to content

Merge pull request #14 from aktsk/update-actions #53

Merge pull request #14 from aktsk/update-actions

Merge pull request #14 from aktsk/update-actions #53

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@v5
with:
go-version: 1.16.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: cache
uses: actions/cache@v4
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