Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
move some easy build jobs (DCO, Spotless) over to github
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
  • Loading branch information
atoulme committed Jul 23, 2022
commit 672b0ed6302917746680306dfbe6f0bd2cf8b17c
25 changes: 1 addition & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -404,12 +386,7 @@ workflows:
version: 2
default:
jobs:
- dco
- spotless
- assemble:
requires:
- dco
- spotless
- assemble
- unitTests:
# Temporarily disabled
# context: SonarCloud
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -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 }}