Skip to content

Commit

Permalink
(fix) tweak ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
strazzere committed Aug 6, 2024
1 parent 914c598 commit cb5c9cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 79 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/ci.yml

This file was deleted.

39 changes: 11 additions & 28 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,23 @@ jobs:
java-version: '17'
distribution: 'temurin'

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2

- name: Build with Gradle Wrapper
run: ./gradlew build

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
# with:
# gradle-version: '8.5'
#
# - name: Build with Gradle 8.5
# run: gradle build
- name: Generate coverage report and upload to Coveralls
run: |
./gradlew jacocoTestReport
./gradlew coveralls
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
dependency-submission:
- name: Build JAR
run: ./gradlew jar

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
- name: Upload JAR as artifact
uses: actions/upload-artifact@v3
with:
java-version: '17'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
name: axmlprinter-${{ github.sha.slice(0, 7) }}
path: build/libs/*.jar

0 comments on commit cb5c9cc

Please sign in to comment.