-
Notifications
You must be signed in to change notification settings - Fork 20
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
Showing
2 changed files
with
15 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,28 @@ | ||
name: Test all the things | ||
|
||
on: [ push, pull_request ] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-agent: | ||
runs-on: ubuntu-latest | ||
name: Build agent with Java 8 | ||
strategy: | ||
matrix: | ||
java: [ 8 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 8 | ||
distribution: 'zulu' | ||
- name: Build agent with Java 8 | ||
run: ./gradlew wrapper --gradle-version=7.6.2 :agent:publishToMavenLocal | ||
|
||
ci: | ||
runs-on: ubuntu-latest | ||
name: Test with different Java versions | ||
name: Java ${{ matrix.java }} | ||
strategy: | ||
matrix: | ||
java: [ 11, 17, 18 ] | ||
java: [ 8, 11, 17, 18 ] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v2 | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
cache: 'gradle' | ||
- name: Test | ||
run: | | ||
./gradlew wrapper --gradle-version=7.6.2 assemble | ||
./travis-test.sh | ||
run: ./gradlew wrapper --gradle-version=7.6.2 :agent:publishToMavenLocal && ./gradlew wrapper --gradle-version=7.6.2 assemble && ./travis-test.sh |
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