Config template and telemetry fixes (#377) #617
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-test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-4c-16GB-150GB | |
container: debian:bullseye-slim | |
environment: build-test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install certs and build-essential (required by CGO) | |
run: apt-get update && apt-get install -y ca-certificates build-essential | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22' | |
- name: Cache Go modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Build | |
run: go build -v ./src/... |