Skip to content

fix dockerignore and tarball uploads for cloud agents #1

fix dockerignore and tarball uploads for cloud agents

fix dockerignore and tarball uploads for cloud agents #1

Workflow file for this run

name: Go Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache: true
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/[email protected]
- name: Download Go modules
run: go mod download
- name: Static Check
uses: dominikh/staticcheck-action@v1
with:
checks: '["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]'
version: "latest"
install-go: false
- name: Test
shell: bash
run: |
set -euo pipefail
go test -race -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Upload test log
uses: actions/upload-artifact@v4
if: always()
with:
name: test-log-${{ matrix.os }}
path: /tmp/gotest.log
if-no-files-found: error