Setting up a new morphir-cli and coding libraries #5
Workflow file for this run
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: CI - Check | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout current branch | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Java | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
distribution: 'graalvm' | ||
java-version: 22 | ||
version: "latest" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
components: "native-image" | ||
- name: Cache scala dependencies | ||
uses: coursier/cache-action@v6 | ||
- name: Lint code | ||
run: ./mill -i Alias/run lint | ||
test: | ||
strategy: | ||
matrix: | ||
java-distribution: ["temurin"] | ||
java-version: ["22", "11"] | ||
include: | ||
- java-distribution: "graalvm" | ||
java-version: "22" | ||
is-graal: true | ||
runs-on: ubuntu-latest | ||
Check failure on line 41 in .github/workflows/check.yml
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup GraalVM | ||
if: ${{matrix.is-graal}} | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: ${{ matrix.java-distribution}} | ||
version: "latest" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
components: "native-image" | ||
- name: Setup Java | ||
if: ${{matrix.is-graal != true}} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ matrix.java-distribution }} | ||
java-version: ${{ matrix.java-version}} | ||
- name: Cache scala dependencies | ||
uses: coursier/cache-action@v6 | ||
- name: Test Modules & Libraries | ||
run: ./mill -i Alias/run tesModules | ||
- name: Test Apps | ||
if: ${{matrix.is-graal}} | ||
run: ./mill -i Alias/run testApps |