Skip to content

Commit

Permalink
divide up pre-checks
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 17, 2023
1 parent 808bb6b commit d834489
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 68 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/checks.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 2 additions & 9 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/spotless.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit d834489

Please sign in to comment.