Skip to content

Publish binaries for testing #65

Publish binaries for testing

Publish binaries for testing #65

Workflow file for this run

name: Run Go tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Compile CLI binaries
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
go_version: 1.21
pkg: cmd/tf-preview-gh
dest: dist
targets: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64
- uses: actions/upload-artifact@v4
with:
path: ./dist