Skip to content

remove junit-jacoco-convention, only apply java-base plugin #141

remove junit-jacoco-convention, only apply java-base plugin

remove junit-jacoco-convention, only apply java-base plugin #141

name: Quality Assurance
on: [push, pull_request]
jobs:
before_pr:
name: before-pr.sh
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install shellcheck
run: ./lib/tegonal-scripts/src/ci/install-shellcheck.sh
- name: before-pr.sh
run: ./scripts/before-pr.sh
matrix_prep:
name: Matrix Preparation gradle
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- id: set-matrix
run: |
node .github/workflows/matrix.js
gradle_build:
needs: matrix_prep
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
name: '${{ matrix.name }}'
env:
JAVA_VERSION: ${{ matrix.java_version }}
steps:
- uses: actions/checkout@v4
- name: "Set up JDK ${{ matrix.java_version }}"
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java_distribution }}
java-version: ${{ matrix.java_version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: "build using jdk ${{ matrix.java_version }}"
run: ./gradlew build
dependency-submission:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4