From d6b80fc3054e47e355c299e7f7c1260c885ae620 Mon Sep 17 00:00:00 2001 From: Nathaniel Irons Date: Sat, 25 Apr 2020 23:49:25 -0700 Subject: [PATCH] Add initial github actions workflow --- .github/workflows/main.yml | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..f7aa69ebe7 --- /dev/null +++ b/.github/workflows/main.yml @@ -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