Skip to content

NUTCH-3015 Add more CI steps to GitHub master-build.yml #16

NUTCH-3015 Add more CI steps to GitHub master-build.yml

NUTCH-3015 Add more CI steps to GitHub master-build.yml #16

Workflow file for this run

# 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.

Check failure on line 15 in .github/workflows/master-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/master-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
name: master pull request ci
on: [push, pull_request]
branches: [master]
jobs:
javadoc:
strategy:
matrix:
java: ['11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: Javadoc
run: ant clean javadoc -buildfile build.xml
rat:
strategy:
matrix:
java: ['11']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: Run Apache Rat
run: ant clean run-rat -buildfile build.xml
- name: Cache unknown licenses
run: sed -n 18p build/apache-rat-report.txt=$unknown_licenses
- name: Fail if any unknown licenses
if: ${{ '${{ env.unknown_licenses }}' != '0 Unknown Licenses' }}
run: exit 1
test:
strategy:
matrix:
java: ['11']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: Test
run: ant clean test -buildfile build.xml