Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Merge pull request #43 from NETWAYS/dependabot/github_actions/actions… #55

Merge pull request #43 from NETWAYS/dependabot/github_actions/actions…

Merge pull request #43 from NETWAYS/dependabot/github_actions/actions… #55

Workflow file for this run

name: Go Test
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: Download modules
run: go get -v -t ./...
- name: Test
run: go test -v ./...