Skip to content

Mamoru Sniffer

Mamoru Sniffer #10

name: Build Test
on:
push:
branches:
- master
- 'mamoru*'
- develop
pull_request:
branches:
- master
- 'mamoru*'
- develop
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: go version
- name: Cache Go modules and build cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# - name: Setup SSH for Private Repository Access
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Test and Build with Makefile
run: |
go mod download
make build