Skip to content

Merge pull request #55 from hashicorp/alisdair/sourcebundle-client-ex… #119

Merge pull request #55 from hashicorp/alisdair/sourcebundle-client-ex…

Merge pull request #55 from hashicorp/alisdair/sourcebundle-client-ex… #119

Workflow file for this run

---
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: go.mod
- name: build
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: go.mod
- name: test
run: go test -race ./...