Skip to content

Commit

Permalink
Cleaned up CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Jul 13, 2024
1 parent da0af85 commit 413fa71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
version: 2
version: 2.1

orbs:
sdkman: joshdholtz/sdkman@0.2.0

defaults: &defaults
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
CI_NAME: "CircleCI"

orbs:
sdkman: joshdholtz/sdkman@0.2.0

defaults_bld: &defaults_bld
steps:
- checkout
- sdkman/setup-sdkman
- sdkman/sdkman-install:
candidate: kotlin
version: 2.0.0

- run:
name: Download the bld dependencies
command: ./bld download
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/bld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ name: bld-ci

on: [push, pull_request, workflow_dispatch]

env:
KOTLIN_HOME: /usr/share/kotlinc

jobs:
build-bld-project:
runs-on: ubuntu-latest

env:
COVERAGE_SDK: "17"
COVERAGE_JDK: "22"
COVERAGE_KOTLIN: "2.0.0"
KOTLIN_HOME: /usr/share/kotlinc

strategy:
matrix:
Expand Down Expand Up @@ -42,12 +41,12 @@ jobs:
run: ./bld jacoco

- name: Remove pom.xml
if: success() && matrix.java-version == env.COVERAGE_SDK
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
run: rm -rf pom.xml

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
if: success() && matrix.java-version == env.COVERAGE_SDK
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 413fa71

Please sign in to comment.