Skip to content

Merge pull request #76 from FootprintAI/dependabot/go_modules/google.… #115

Merge pull request #76 from FootprintAI/dependabot/go_modules/google.…

Merge pull request #76 from FootprintAI/dependabot/go_modules/google.… #115

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main", "release*" ]
pull_request:
branches: []
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: "1.21.7"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go mod tidy
go mod vendor
- name: Test
id: test
run: |
export GOPATH=/home/runner/go
export PATH=$PATH:/home/runner/go/bin
go test -test.v ./... --short -coverprofile coverage.out