blob: 9d3289bb4ae8ca5858c42ad82f205a519a2319bc [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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: CI - Misc
on:
pull_request:
branches:
- master
- branch-2.6
push:
branches:
- branch-*
jobs:
license-check:
name: License check
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# license check fails with 3.6.2 so we have to downgrade
- name: Set up Maven
uses: apache/pulsar-test-infra/setup-maven@master
with:
maven-version: 3.6.1
- name: build and check license
run: mvn -B -ntp -DskipTests license:check install
- name: license check
run: src/check-binary-license ./distribution/server/target/apache-pulsar-*-bin.tar.gz