forked from facebookincubator/go2chef
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 917 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Go2Chef
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
name: Test + Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v5
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Test on Windows
if: runner.os == 'windows'
run: go test ./...
- name: Test on POSIX
if: runner.os != 'windows'
run: make test
- name: Build on Windows
if: runner.os == 'windows'
run: ./scripts/build.sh
env:
GOOS: windows
GOARCH: amd64
shell: bash
- name: Build on OSX
if: runner.os == 'macos'
run: make darwin
- name: Build on Linux
if: runner.os == 'linux'
run: make linux