mirror of https://github.com/kubernetes/kops.git
Merge pull request #9552 from hakman/github-workflow-v2
Use stable names for GH workflow jobs
This commit is contained in:
commit
1c12ce3926
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
name: build
|
||||
name: CI
|
||||
|
||||
'on':
|
||||
- push
|
||||
|
@ -10,52 +10,50 @@ env:
|
|||
GOPATH: ${{ github.workspace }}/go
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
# Note, the following build matrix generates jobs that are blocking via prow.
|
||||
# When changing the versions or images below, please update prow config too:
|
||||
# https://github.com/kubernetes/test-infra/blob/566fea31f63670f583dde93b55fcb0a13bdc2562/config/prow/config.yaml
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos-10.15]
|
||||
go: [1.13, 1.14]
|
||||
exclude:
|
||||
- os: macos-10.15
|
||||
go: 1.14
|
||||
fail-fast: true
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
build-linux-amd64:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Set up go
|
||||
uses: actions/setup-go@v1
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
id: go
|
||||
go-version: 1.14
|
||||
stable: true
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||
|
||||
- name: make nodeup examples test
|
||||
- name: make all examples test
|
||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||
run: |
|
||||
make nodeup examples test
|
||||
make all examples test
|
||||
|
||||
build-macos-amd64:
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- name: Set up go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
stable: true
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||
|
||||
- name: make kops examples test
|
||||
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
|
||||
run: |
|
||||
make kops examples test
|
||||
|
||||
verify:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04]
|
||||
go: [1.13]
|
||||
fail-fast: true
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Set up go
|
||||
uses: actions/setup-go@v1
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
id: go
|
||||
go-version: 1.14
|
||||
stable: true
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue