Skip to content

Commit

Permalink
chore: refactor the license check CI
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed Feb 7, 2023
1 parent e1cb3eb commit dfca24d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 37 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/check-dependencies.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: hugegraph-commons ci
name: "hugegraph-commons ci"

on:
push:
Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: License checker
name: "license checker"

on:
push:
branches:
- master
- /^release-.*$/
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-license:
check-license-header:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -32,3 +35,25 @@ jobs:
mvn apache-rat:check -ntp
find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt
grep "Binaries" merged-rat.txt -C 3 && cat merged-rat.txt
check-dependency-license:
runs-on: ubuntu-latest
env:
SCRIPT_DEPENDENCY: hugegraph-dist/scripts/dependency
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: mvn install
run: |
mvn install -DskipTests=true -ntp
- name: generate current dependencies
run: |
bash $SCRIPT_DEPENDENCY/regenerate_known_dependencies.sh current-dependencies.txt
- name: check third dependencies
run: |
bash $SCRIPT_DEPENDENCY/check_dependencies.sh
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Mark stale issues and pull requests
name: "Mark stale issues and pull requests"

on:
schedule:
Expand Down

0 comments on commit dfca24d

Please sign in to comment.