Skip to content

Commit

Permalink
Break free from Knative actions (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored May 14, 2021
1 parent c03201f commit 4cdd086
Show file tree
Hide file tree
Showing 14 changed files with 101 additions and 602 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
# Copyright 2020 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file is automagically synced here from github.com/knative-sandbox/.github
# repo by knobots: https://github.com/knative-sandbox/knobots and will be overwritten.

name: Boilerplate

on:
pull_request:
branches: [ 'main', 'master', 'release-*' ]
branches: ['main']

jobs:

Expand All @@ -41,15 +24,11 @@ jobs:
language: Bash

steps:

- name: Set up Go 1.15.x
uses: actions/setup-go@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15.x
id: go
go-version: 1.16.x

- name: Check out code
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install Tools
run: |
Expand All @@ -66,13 +45,8 @@ jobs:
echo "${TEMP_PATH}" >> $GITHUB_PATH
- id: boilerplate_txt
uses: andstor/file-existence-action@v1
with:
files: ./hack/boilerplate/boilerplate.${{ matrix.extension }}.txt
- name: ${{ matrix.language }} license boilerplate
shell: bash
if: ${{ steps.boilerplate_txt.outputs.files_exists == 'true' }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
pull_request:
branches: ['main']

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16.x

- run: |
go build ./...
go test -run=^$ ./...
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
# Copyright 2020 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file is automagically synced here from github.com/knative-sandbox/.github
# repo by knobots: https://github.com/knative-sandbox/knobots and will be overwritten.

name: Do Not Submit

on:
pull_request:
branches: [ 'main', 'master', 'release-*' ]
branches: ['main']

jobs:

Expand All @@ -28,9 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- uses: actions/checkout@v2
- name: Do Not Submit
shell: bash
env:
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/knative-go-build.yaml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/knative-go-test.yaml

This file was deleted.

Loading

0 comments on commit 4cdd086

Please sign in to comment.