diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..058c67c --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,27 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'corretto' + - name: Build with Gradle + uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef + with: + arguments: build diff --git a/README.md b/README.md index 9986b26..d4e38cd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Activity Sampling +![Java CI with Gradle](https://github.com/falkoschumann/activity-sampling-java/actions/workflows/gradle.yml/badge.svg) + +# Activity Sampling Periodically ask the user about their current activity and log it for analysis.