Skip to content

Commit

Permalink
change CI from CircleCI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoizo committed Aug 10, 2024
1 parent 0060d25 commit c6b4651
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 31 deletions.
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Verify dependencies
run: ./gradlew dependencies

- name: Run checks and generate report
run: |
./gradlew clean check
./gradlew jacocoTestReport
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ tasks.jacocoTestReport {
.setFrom(files("${buildDir}/jacoco/jvmTest.exec"))

reports {
xml.isEnabled = true
html.isEnabled = false
xml.required.set(true)
html.required.set(false)
}
}

0 comments on commit c6b4651

Please sign in to comment.