generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eb7d48
commit 6029ba3
Showing
6 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# WARNING: Do not edit this file directly. Instead, go to: | ||
# | ||
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | ||
# | ||
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | ||
name: GraalVM CE CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
pull_request: | ||
branches: | ||
- master | ||
- '[1-9]+.[0-9]+.x' | ||
jobs: | ||
build: | ||
if: github.repository != 'micronaut-projects/micronaut-project-template' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: ['11', '17'] | ||
graalvm: ['latest', 'dev'] | ||
steps: | ||
# https://github.com/actions/virtual-environments/issues/709 | ||
- name: Free disk space | ||
run: | | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt-get clean | ||
df -h | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Setup GraalVM CE | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
version: ${{ matrix.graalvm }} | ||
java-version: ${{ matrix.java }} | ||
components: 'native-image' | ||
- name: Build with Gradle | ||
run: | | ||
if ./gradlew tasks --no-daemon --all | grep -w "testNativeImage" | ||
then | ||
./gradlew check testNativeImage --continue --no-daemon | ||
else | ||
./gradlew check --continue --no-daemon | ||
fi | ||
env: | ||
TESTCONTAINERS_RYUK_DISABLED: true | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | ||
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | ||
PREDICTIVE_TEST_SELECTION: "${{ github.event_name == 'pull_request' && 'true' || 'false' }}" | ||
- name: Publish Test Report | ||
if: always() | ||
uses: mikepenz/[email protected] | ||
with: | ||
check_name: GraalVM CE CI / Test Report (Java ${{ matrix.java }}) | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
check_retries: 'true' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,11 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Set the current release version | ||
id: release_version | ||
run: echo ::set-output name=release_version::${GITHUB_REF:17} | ||
run: echo ::set-output name=release_version::${GITHUB_REF:11} | ||
- name: Run pre-release | ||
uses: micronaut-projects/github-actions/pre-release@master | ||
env: | ||
|
@@ -119,7 +119,7 @@ jobs: | |
actions: read # To read the workflow path. | ||
id-token: write # To sign the provenance. | ||
contents: write # To add assets to a release. | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected].0 | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected].1 | ||
with: | ||
base64-subjects: "${{ needs.release.outputs.hashes }}" | ||
upload-assets: true # Upload to a new release. | ||
|
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