Skip to content

Merge pull request #279 from volterraedge/11Sept2024Release #307

Merge pull request #279 from volterraedge/11Sept2024Release

Merge pull request #279 from volterraedge/11Sept2024Release #307

Workflow file for this run

name: Go Unit Tests
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'examples/**'
- '.github/workflows/**'
- '.goreleaser.yml'
- 'README.md'
pull_request:
branches:
- "*"
paths-ignore:
- 'docs/**'
- 'examples/**'
- '.github/workflows/**'
- '.goreleaser.yml'
- 'README.md'
jobs:
tests:
name: Go Tests
runs-on: self-hosted
timeout-minutes: 60
steps:
- name: Configure git for private modules
env:
TOKEN: ${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}
USER: ${{ secrets.GITLAB_USERNAME }}
run: git config --global url."https://${USER}:${TOKEN}@gitlab.com".insteadOf "https://gitlab.com"
- name: Install Go 1.20
uses: actions/setup-go@v1
with:
go-version: '1.20'
id: go
- uses: actions/checkout@master
- run: make cmd-go-mod-tidy
#- run: make cmd-go-mod-vendor
- name: Run tests
run: |
TF_ACC=1 go test -v ./... -timeout=30m