Merge pull request #208 from mimiro-io/securityPatch #574
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: [push, pull_request] | |
env: | |
GOPROXY: "https://proxy.golang.org" | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5.0.0 | |
with: | |
go-version: 1.22.2 | |
- name: Cache Go modules | |
uses: actions/cache@v2.1.5 | |
with: | |
path: | | |
~/go/pkg/mod # Module download cache | |
~/.cache/go-build # Build cache (Linux) | |
~/Library/Caches/go-build # Build cache (Mac) | |
'%LocalAppData%\go-build' # Build cache (Windows) | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | |
- name: Build, test | |
run: make all | |