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 6dfb989
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 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 check
./gradlew clean build jacocoTestReport
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 6dfb989

Please sign in to comment.