9b5d44c2f6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: Test
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
merge_group:
|
|
types:
|
|
- checks_requested
|
|
|
|
concurrency:
|
|
group: ${{ format('{0}-{1}', github.workflow, github.ref) }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Run unit tests
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest ]
|
|
java: [ 21 ]
|
|
runs-on: ${{ matrix.os }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Common Setup
|
|
uses: ./.github/actions/common-setup
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew clean shadowJar -x test -x checkstyleMain -x checkstyleTest -x spotbugsMain --info
|
|
|
|
- name: Upload build results
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: ${{ matrix.os }} Java ${{ matrix.java }} build results
|
|
path: ${{ github.workspace }}/build/libs/
|
|
|
|
- name: Upload test results
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: ${{ matrix.os }} Java ${{ matrix.java }} test results
|
|
path: ${{ github.workspace }}/build/reports/
|