move some easy build jobs (DCO, Spotless) over to github (#4161)

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
pull/4164/head
Antoine Toulme 2 years ago committed by GitHub
parent 059af013bd
commit b7cea68d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      .circleci/config.yml
  2. 34
      .github/workflows/checks.yml

@ -137,24 +137,6 @@ jobs:
destination: distributions
when: always
dco:
executor: besu_executor_small
steps:
- checkout
- restore_gradle_cache
- run:
name: DCO check
command: |
./scripts/dco_check.sh
spotless:
executor: besu_executor_small
steps:
- checkout
- restore_gradle_cache
- run:
name: Spotless
command: |
./gradlew --no-daemon --parallel clean spotlessCheck
testWindows:
executor: win/default
steps:
@ -399,12 +381,7 @@ workflows:
version: 2
default:
jobs:
- dco
- spotless
- assemble:
requires:
- dco
- spotless
- assemble
- unitTests:
requires:
- assemble

@ -0,0 +1,34 @@
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 }}
Loading…
Cancel
Save