Merge pull request #530 from dnestoro/dnestoro/CreateRelease0.9.28 #485
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test native-maven-plugin" | |
on: | |
push: | |
paths: | |
- 'native-maven-plugin/**' | |
- 'samples/**' | |
- 'common/**' | |
- '.github/actions/**' | |
- '.github/workflows/test-native-maven-plugin.yml' | |
pull_request: | |
paths: | |
- 'native-maven-plugin/**' | |
- 'samples/**' | |
- 'common/**' | |
- '.github/actions/**' | |
- '.github/workflows/test-native-maven-plugin.yml' | |
workflow_dispatch: | |
concurrency: | |
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}" | |
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'graalvm/native-build-tools' }} | |
jobs: | |
test-native-maven-plugin: | |
name: "Maven plugin tests" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: [ 17 ] | |
os: [ ubuntu-20.04 ] | |
steps: | |
- name: "☁️ Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "🔧 Prepare environment" | |
uses: ./.github/actions/prepare-environment | |
with: | |
java-version: ${{ matrix.java-version }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "❓ Check and test the plugin" | |
run: ./gradlew :native-maven-plugin:check --no-daemon | |
- name: "📜 Upload unit test results" | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: maven-functional-tests-results-${{ matrix.os }} | |
path: native-maven-plugin/build/reports/tests/ | |
test-native-maven-plugin-windows: | |
name: "Windows Minimal Tests for Maven plugin" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: [ 17 ] | |
os: [ windows-latest ] | |
steps: | |
- name: "☁️ Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "🔧 Prepare environment" | |
uses: ./.github/actions/prepare-environment | |
with: | |
java-version: ${{ matrix.java-version }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "❓ Check and test the Maven plugin" | |
run: ./gradlew :native-maven-plugin:functionalTest --no-daemon --fail-fast | |
- name: "📜 Upload tests results" | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-maven-functional-tests-results | |
path: native-maven-plugin/build/reports/tests/ |