Update logic such that the full text isn't grabbed #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: LICENES CI | |
on: | |
push: | |
branches-ignore: ["dependabot/**"] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
rat-check: | |
name: Rat Check | |
strategy: | |
matrix: | |
java_distribution: [temurin] | |
java_version: [8] | |
os: [ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
env: | |
SBT: sbt -J-Xms1024m -J-Xmx5120m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m ++2.12.15 | |
steps: | |
############################################################ | |
# Setup | |
############################################################ | |
- name: Check out Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
distribution: ${{ matrix.java_distribution }} | |
java-version: ${{ matrix.java_version }} | |
############################################################ | |
# Rat check | |
############################################################ | |
- name: Run Rat Check | |
run: $SBT ratCheck || (cat target/rat.txt; exit 1) | |
node-missing-license-data-check: | |
name: Node Missing LICENSE Data Check | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
node: ["22.14.0"] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
############################################################ | |
# Setup | |
############################################################ | |
- name: Check out Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: yarn install | |
############################################################ | |
# Node Missing LICENSE Data Check | |
############################################################ | |
- name: Run Node Missing LICENSE Data Check | |
run: yarn check-missing-license-data | |
node-license-compatibility: | |
name: Node LICENSE Compatibility Check | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
node: ["22.14.0"] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
############################################################ | |
# Setup | |
############################################################ | |
- name: Check out Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: yarn install | |
############################################################ | |
# Node LICENSE Compatibility Check | |
############################################################ | |
- name: Run Node LICENSE Compatibility Check | |
run: yarn check-license-compatibility |