Update actions (#544)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-10-15 17:11:24 -04:00 committed by GitHub
parent da0e252224
commit ed5388353f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 12 deletions

View File

@ -42,10 +42,10 @@ jobs:
steps:
- name: Set up Go 1.16.x
- name: Set up Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
id: go
- name: Check out code

View File

@ -27,7 +27,7 @@ jobs:
name: Build
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

View File

@ -31,7 +31,7 @@ jobs:
name: Unit Tests
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
@ -52,6 +52,12 @@ jobs:
- name: Merge upstream
if: github.event_name == 'pull_request'
run: |
if ! git config user.name > /dev/null; then
git config user.name "John Doe"
fi
if ! git config user.email > /dev/null; then
git config user.email "johndoe@localhost"
fi
git remote add upstream https://github.com/${{ github.repository }}.git
git fetch upstream ${{ github.base_ref }}
git pull --no-rebase --no-commit upstream ${{ github.base_ref }}

View File

@ -54,10 +54,10 @@ jobs:
echo "SLACK_WEBHOOK=exists" >> $GITHUB_ENV
fi
- name: Set up Go 1.16.x
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
- name: Install Dependencies
run: GO111MODULE=on go get knative.dev/test-infra/buoy@main

View File

@ -41,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
- name: Install Dependencies
run: GO111MODULE=on go get k8s.io/release/cmd/release-notes

View File

@ -40,10 +40,10 @@ jobs:
importpath: golang.org/x/tools/cmd/goimports
steps:
- name: Set up Go 1.16.x
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
id: go
- name: Check out code
@ -89,10 +89,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16.x
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x
id: go
- name: Check out code

View File

@ -27,7 +27,7 @@ jobs:
name: Verify Deps and Codegen
strategy:
matrix:
go-version: [1.16.x]
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

View File

@ -1,3 +1,4 @@
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*