mirror of
https://github.com/ko-build/ko.git
synced 2025-03-17 20:47:51 +02:00
Update actions (#363)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
09aea0d50b
commit
1b023d3020
4
.github/workflows/knative-boilerplate.yaml
vendored
4
.github/workflows/knative-boilerplate.yaml
vendored
@ -42,10 +42,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.15.x
|
||||
- name: Set up Go 1.16.x
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
go-version: 1.16.x
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
|
11
.github/workflows/knative-go-build.yaml
vendored
11
.github/workflows/knative-go-build.yaml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
name: Build
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.15.x]
|
||||
go-version: [1.16.x]
|
||||
platform: [ubuntu-latest]
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
@ -43,7 +43,13 @@ jobs:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- id: go_mod
|
||||
uses: andstor/file-existence-action@v1
|
||||
with:
|
||||
files: go.mod
|
||||
|
||||
- name: Build
|
||||
if: ${{ steps.go_mod.outputs.files_exists == 'true' }}
|
||||
run: |
|
||||
tags="$(grep -I -r '// +build' . | \
|
||||
grep -v '^./vendor/' | \
|
||||
@ -55,5 +61,4 @@ jobs:
|
||||
tr '\n' ' ')"
|
||||
|
||||
echo "Building with tags: ${tags}"
|
||||
go test -vet=off -tags "${tags}" -run=^$ ./... | grep -v "no test" || true
|
||||
|
||||
go test -vet=off -tags "${tags}" -run=^$ ./...
|
||||
|
2
.github/workflows/knative-go-test.yaml
vendored
2
.github/workflows/knative-go-test.yaml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
name: Unit Tests
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.15.x]
|
||||
go-version: [1.16.x]
|
||||
platform: [ubuntu-latest]
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
4
.github/workflows/knative-releasability.yaml
vendored
4
.github/workflows/knative-releasability.yaml
vendored
@ -54,10 +54,10 @@ jobs:
|
||||
echo "SLACK_WEBHOOK=exists" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Set up Go 1.15.x
|
||||
- name: Set up Go 1.16.x
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
go-version: 1.16.x
|
||||
|
||||
- name: Install Dependencies
|
||||
run: GO111MODULE=on go get knative.dev/test-infra/buoy@main
|
||||
|
8
.github/workflows/knative-style.yaml
vendored
8
.github/workflows/knative-style.yaml
vendored
@ -40,10 +40,10 @@ jobs:
|
||||
importpath: golang.org/x/tools/cmd/goimports
|
||||
|
||||
steps:
|
||||
- name: Set up Go 1.15.x
|
||||
- name: Set up Go 1.16.x
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
go-version: 1.16.x
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
@ -89,10 +89,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Set up Go 1.15.x
|
||||
- name: Set up Go 1.16.x
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
go-version: 1.16.x
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
|
2
.github/workflows/knative-verify.yaml
vendored
2
.github/workflows/knative-verify.yaml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
name: Verify Deps and Codegen
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.15.x]
|
||||
go-version: [1.16.x]
|
||||
platform: [ubuntu-latest]
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user