dynamo-browse/.github/workflows/ci.yaml
Leon Mika 55b8103416
Split the releases into a MacOS one and Linux/Windows one
This is to add support for building the MacOS binary using CGO.
2022-11-18 22:14:33 +11:00

37 lines
797 B
YAML

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack
ports:
- "4566:4566"
env:
SERVICES: ssm,dynamodb
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Configure
run: |
git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika"
- name: Test
run: |
set -xue
go get ./...
go test -p 1 ./...
env:
GOPRIVATE: "github:com/lmika/*"