mirror of https://github.com/knative/pkg.git
Removal of Tekton downstream tests (#2654)
This commit is contained in:
parent
05b694ec4d
commit
9e943faaef
|
|
@ -1,76 +0,0 @@
|
|||
# Copyright 2021 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.
|
||||
|
||||
name: Downstream Tekton
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ 'main' ]
|
||||
|
||||
jobs:
|
||||
downstream-tekton:
|
||||
name: Unit Test
|
||||
|
||||
strategy:
|
||||
fail-fast: false # Keep running if one leg fails.
|
||||
matrix:
|
||||
repo:
|
||||
- tektoncd/pipeline
|
||||
- tektoncd/chains
|
||||
- tektoncd/triggers
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Set up Go 1.18.x
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
go install github.com/google/go-licenses@latest
|
||||
|
||||
- name: Checkout Upstream
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
path: upstream
|
||||
|
||||
- name: Merge upstream
|
||||
if: github.event_name == 'pull_request'
|
||||
shell: bash
|
||||
working-directory: upstream
|
||||
run: |
|
||||
if ! git config user.name > /dev/null; then
|
||||
git config user.name "Knative Action"
|
||||
fi
|
||||
if ! git config user.email > /dev/null; then
|
||||
git config user.email "action@knative.dev"
|
||||
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 }}
|
||||
|
||||
- name: Checkout Downstream
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ matrix.repo }}
|
||||
path: downstream
|
||||
|
||||
- name: Test Downstream
|
||||
uses: knative/actions/go/downstream-test@main
|
||||
with:
|
||||
upstream-path: upstream
|
||||
downstream-path: downstream
|
||||
Loading…
Reference in New Issue