Skip to content

Commit 4cdd086

Browse files
authored
Break free from Knative actions (#1016)
1 parent c03201f commit 4cdd086

14 files changed

+101
-602
lines changed

Diff for: .github/workflows/knative-boilerplate.yaml renamed to .github/workflows/boilerplate.yaml

+4-30
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
# Copyright 2020 The Knative Authors.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
# This file is automagically synced here from github.com/knative-sandbox/.github
16-
# repo by knobots: https://github.com/knative-sandbox/knobots and will be overwritten.
17-
181
name: Boilerplate
192

203
on:
214
pull_request:
22-
branches: [ 'main', 'master', 'release-*' ]
5+
branches: ['main']
236

247
jobs:
258

@@ -41,15 +24,11 @@ jobs:
4124
language: Bash
4225

4326
steps:
44-
45-
- name: Set up Go 1.15.x
46-
uses: actions/setup-go@v2
27+
- uses: actions/setup-go@v2
4728
with:
48-
go-version: 1.15.x
49-
id: go
29+
go-version: 1.16.x
5030

51-
- name: Check out code
52-
uses: actions/checkout@v2
31+
- uses: actions/checkout@v2
5332

5433
- name: Install Tools
5534
run: |
@@ -66,13 +45,8 @@ jobs:
6645
6746
echo "${TEMP_PATH}" >> $GITHUB_PATH
6847
69-
- id: boilerplate_txt
70-
uses: andstor/file-existence-action@v1
71-
with:
72-
files: ./hack/boilerplate/boilerplate.${{ matrix.extension }}.txt
7348
- name: ${{ matrix.language }} license boilerplate
7449
shell: bash
75-
if: ${{ steps.boilerplate_txt.outputs.files_exists == 'true' }}
7650
env:
7751
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
7852
run: |

Diff for: .github/workflows/build.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
7+
jobs:
8+
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16.x
18+
19+
- run: |
20+
go build ./...
21+
go test -run=^$ ./...

Diff for: .github/workflows/knative-donotsubmit.yaml renamed to .github/workflows/donotsubmit.yaml

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
# Copyright 2020 The Knative Authors.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
# This file is automagically synced here from github.com/knative-sandbox/.github
16-
# repo by knobots: https://github.com/knative-sandbox/knobots and will be overwritten.
17-
181
name: Do Not Submit
192

203
on:
214
pull_request:
22-
branches: [ 'main', 'master', 'release-*' ]
5+
branches: ['main']
236

247
jobs:
258

@@ -28,9 +11,7 @@ jobs:
2811
runs-on: ubuntu-latest
2912

3013
steps:
31-
- name: Check out code
32-
uses: actions/checkout@v2
33-
14+
- uses: actions/checkout@v2
3415
- name: Do Not Submit
3516
shell: bash
3617
env:

Diff for: .github/workflows/knative-go-build.yaml

-59
This file was deleted.

Diff for: .github/workflows/knative-go-test.yaml

-65
This file was deleted.

0 commit comments

Comments
 (0)