mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
874 B
34 lines
874 B
2 years ago
|
name: checks
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
spotless:
|
||
|
runs-on: ubuntu-latest
|
||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||
|
steps:
|
||
|
- name: Checkout Repo
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Set up Java
|
||
|
uses: actions/setup-java@v2
|
||
|
with:
|
||
|
distribution: adopt
|
||
|
java-version: 11
|
||
|
cache: gradle
|
||
|
- name: spotless
|
||
|
run: ./gradlew --no-daemon --parallel clean spotlessCheck
|
||
|
dco:
|
||
|
runs-on: ubuntu-latest
|
||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||
|
steps:
|
||
|
- name: Get PR Commits
|
||
|
id: 'get-pr-commits'
|
||
|
uses: tim-actions/get-pr-commits@v1.2.0
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
- name: DCO Check
|
||
|
uses: tim-actions/dco@v1.1.0
|
||
|
with:
|
||
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|