Skip to content

chore(deps): update github-actions #344

chore(deps): update github-actions

chore(deps): update github-actions #344

Workflow file for this run

name: Java CI
on:
pull_request:
branches: [master]
push:
branches: [master]
release:
types: [created]
permissions: read-all
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: "17"
distribution: "temurin"
cache: "gradle"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: package
path: build/libs
- name: Run Tests
run: ./gradlew test
- name: Run Test Coverage
run: ./gradlew jacocoTestReport
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 # v2.11.0
with:
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
- name: Publish package
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MIRACUM_SIGNING_KEY: ${{ secrets.MIRACUM_SIGNING_KEY }}
MIRACUM_SIGNING_KEY_PASSPHRASE: ${{ secrets.MIRACUM_SIGNING_KEY_PASSPHRASE }}
lint:
uses: miracum/.github/.github/workflows/standard-lint.yaml@948ae9768d09eb2ce8570c1ea6b4d3334a106aba # v1.10.3
permissions:
contents: read
pull-requests: write
issues: write
security-events: write
actions: read
with:
enable-validate-gradle-wrapper: true
codeql-languages: '["java"]'
enable-codeql: true
enable-verify-base-image-signature: false
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}