generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
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
7e1446d
commit 0604fb6
Showing
2 changed files
with
77 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# 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 Dev CI | ||
on: | ||
schedule: | ||
- cron: "0 1 * * 1-5" # Mon-Fri at 1am UTC | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
if: github.repository != 'micronaut-projects/micronaut-project-template' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
graalvm: [ 'dev'] | ||
java: ['17'] | ||
env: | ||
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 }} | ||
GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }} | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
TESTCONTAINERS_RYUK_DISABLED: true | ||
PREDICTIVE_TEST_SELECTION: "${{ github.event_name == 'pull_request' && 'true' || 'false' }}" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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 | ||
- name: "π₯ Checkout repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "π§ Setup GraalVM CE" | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
version: ${{ matrix.graalvm }} | ||
java-version: ${{ matrix.java }} | ||
components: 'native-image' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: "π§ Setup Gradle" | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: "β Optional setup step" | ||
run: | | ||
[ -f ./setup.sh ] && ./setup.sh || [ ! -f ./setup.sh ] | ||
- name: "π Build with Gradle" | ||
id: gradle | ||
run: | | ||
./gradlew check --no-daemon --continue | ||
- name: "π Publish Test Report" | ||
if: always() | ||
uses: mikepenz/action-junit-report@v3 | ||
with: | ||
check_name: Java CI / Test Report (${{ matrix.java }}) | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
check_retries: 'true' | ||
|
||
- name: "π Upload binary compatibility check results" | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: binary-compatibility-reports | ||
path: "**/build/reports/binary-compatibility-*.html" | ||
|
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