diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml deleted file mode 100644 index 84d05183dea..00000000000 --- a/.github/workflows/checks.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: "Pre-build checks" -on: - push: - branches: [ main ] - pull_request: - workflow_dispatch: - -jobs: - lint: - runs-on: [ self-hosted, Linux] - steps: - - name: export runner UID - run: echo "runner_uid=$UID" >> $GITHUB_ENV - - name: Checkout Code - uses: actions/checkout@v3 - - name: 'Run Repolinter' - uses: newrelic/repolinter-action@v1 - with: - config_url: https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/main/repo_structure/repolint.json - - name: Correct Ownership in GITHUB_WORKSPACE directory - uses: peter-murray/reset-workspace-ownership-action@v1 - with: - user_id: ${{ env.runner_uid }} - spotless: - runs-on: [ self-hosted ] - container: tmio/besu-build:1.0 - timeout-minutes: 30 - if: ${{ github.actor != 'dependabot[bot]' }} - steps: - - name: export runner UID - run: echo "runner_uid=$UID" >> $GITHUB_ENV - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Set up Java - uses: actions/setup-java@v3 - with: - distribution: adopt - java-version: 11 - cache: gradle - - name: spotless - run: ./gradlew --no-daemon --parallel clean spotlessCheck - - name: Correct Ownership in GITHUB_WORKSPACE directory - uses: peter-murray/reset-workspace-ownership-action@v1 - with: - user_id: "${{ env.runner_uid }} - javadoc_17: - runs-on: [ self-hosted ] - if: ${{ github.actor != 'dependabot[bot]' }} - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Set up Java 17 - uses: actions/setup-java@v3 - with: - distribution: adopt - java-version: 17 - cache: gradle - - name: javadoc (JDK 17) - run: ./gradlew --no-daemon clean javadoc diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml new file mode 100644 index 00000000000..26181b3e79f --- /dev/null +++ b/.github/workflows/javadoc.yml @@ -0,0 +1,22 @@ +name: "Javadoc linter" +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +jobs: + javadoc_17: + runs-on: [ self-hosted ] + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Set up Java 17 + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 17 + cache: gradle + - name: javadoc (JDK 17) + run: ./gradlew --no-daemon clean javadoc diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index 43d5921eeae..d6fb408471d 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -14,24 +14,17 @@ on: - main jobs: - build: - runs-on: [self-hosted] - container: ghcr.io/todogroup/repolinter:v0.10.1 + lint: + runs-on: [ self-hosted, Linux ] steps: - name: export runner UID run: echo "runner_uid=$UID" >> $GITHUB_ENV - - name: list perms - run: ls -la - name: Checkout Code uses: actions/checkout@v3 - - name: list perms - run: ls -la - name: 'Run Repolinter' uses: newrelic/repolinter-action@v1 with: config_url: https://raw.githubusercontent.com/hyperledger-labs/hyperledger-community-management-tools/main/repo_structure/repolint.json - - name: list perms - run: ls -la - name: Correct Ownership in GITHUB_WORKSPACE directory uses: peter-murray/reset-workspace-ownership-action@v1 with: diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml new file mode 100644 index 00000000000..fd69313990b --- /dev/null +++ b/.github/workflows/spotless.yml @@ -0,0 +1,30 @@ +name: "Spotless Code Formatting" +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +jobs: + spotless: + runs-on: [ self-hosted ] + container: tmio/besu-build:1.0 + timeout-minutes: 30 + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - name: export runner UID + run: echo "runner_uid=$UID" >> $GITHUB_ENV + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 11 + cache: gradle + - name: spotless + run: ./gradlew --no-daemon --parallel clean spotlessCheck + - name: Correct Ownership in GITHUB_WORKSPACE directory + uses: peter-murray/reset-workspace-ownership-action@v1 + with: + user_id: "${{ env.runner_uid }}