.github/workflows/macos.yml
name: macOS
on:
push:
paths-ignore:
- "**.md"
schedule:
- cron: "0 21 * * 0"
jobs:
build:
name: Build on macOS
runs-on: ${{ matrix.vm-os }}
strategy:
max-parallel: 10
fail-fast: false
matrix:
vm-os: [macOS-latest]
go-version: [1.13.15, 1.14.11, 1.15.4]
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Get dependencies
shell: bash
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build & Test
shell: bash
run: script/build.sh ci