Skip to content

Commit

Permalink
added test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Nov 28, 2023
1 parent d70b7e7 commit 1ce0fa5
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
77 changes: 77 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: "test"

on:
pull_request:
branches:
- "*"
push:
branches:
- "*"

jobs:
test-linux:
name: "Linux Jtreg"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK 21
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
- jdkconf: JDK 21
jdkver: "21"
- jdkconf: JDK Latest
jdkver: "21"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver}}
- name: Run
run: ./run.sh "${JAVA_HOME}"

test-macos:
name: "MacOS"
runs-on: "macos-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK 21
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
- jdkconf: JDK 21
jdkver: "21"
- jdkconf: JDK Latest
jdkver: "21"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver}}
- name: Run
run: ./run.sh "${JAVA_HOME}"

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ classes

# Jtreg dirs
jtreg
test.*
test.[0-9]*
tests.[0-9]*

jtreg*.tar.gz

0 comments on commit 1ce0fa5

Please sign in to comment.