Add initial github actions workflow

This commit is contained in:
Nathaniel Irons 2020-04-25 23:49:25 -07:00
parent 73a93f7d44
commit d6b80fc305
1 changed files with 64 additions and 0 deletions

64
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,64 @@
---
name: build
'on':
push:
branches:
- master
pull_request:
branches: ["*"]
env:
GOPROXY: https://proxy.golang.org
GOPATH: ${{ github.workspace }}/go
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, macos-10.15]
go: [1.13, 1.14]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Set up go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
- uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
- name: make nodeup examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
make nodeup examples test
verify:
strategy:
matrix:
os: [ubuntu-18.04]
go: [1.13]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Set up go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
- uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
- name: make travis-ci
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
make travis-ci