mirror of https://github.com/knative/caching.git
Update actions (#544)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
da0e252224
commit
ed5388353f
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue