Skip to content

Merge pull request #16 from buildsec/dependabot/go_modules/golang.org… #16

Merge pull request #16 from buildsec/dependabot/go_modules/golang.org…

Merge pull request #16 from buildsec/dependabot/go_modules/golang.org… #16

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
types: ["opened", "synchronize", "reopened"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Setup Golang caches
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup the project
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...