Skip to content

Commit

Permalink
Add new eclipse tests in pipeline, improve dependency caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 committed Nov 19, 2023
1 parent a76d4cb commit c6f9323
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
path: |
ivyCache
lib
key: ${{ runner.os }}-${{ hashFiles('**/ivy.xml') }}
key: ivy-${{ hashFiles('**/ivy.xml') }}
restore-keys: |
${{ runner.os }}-
ivy-
- name: Build with Ant
run: ant -noinput dist
Expand Down Expand Up @@ -83,9 +83,9 @@ jobs:
path: |
ivyCache
lib
key: ${{ runner.os }}-${{ hashFiles('**/ivy.xml') }}
key: ivy-${{ hashFiles('**/ivy.xml') }}
restore-keys: |
${{ runner.os }}-
ivy-
- name: Run tests
run: ant -noinput test.${{ matrix.goal }}
Expand All @@ -100,8 +100,10 @@ jobs:
- eclipse-202006
- eclipse-202006-jdk8
- eclipse-202212
- eclipse-202309
- eclipse-oxygen-full
- eclipse-2022-03-full
- eclipse-2023-09-full
- ecj11
- ecj14
- ecj16
Expand All @@ -112,10 +114,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'zulu'

- name: Cache dependencies
Expand All @@ -124,9 +126,25 @@ jobs:
path: |
ivyCache
lib
key: ${{ runner.os }}-${{ hashFiles('**/ivy.xml') }}
key: ivy-${{ hashFiles('**/ivy.xml') }}
restore-keys: |
${{ runner.os }}-
ivy-
- name: Cache base testenv
if: ${{ !endsWith(matrix.version, 'full') }}
uses: actions/cache@v3
with:
path: |
testenv
key: base-testenv-${{ hashFiles('**/setup.ant.xml') }}

- name: Cache full testenv
if: ${{ endsWith(matrix.version, 'full') }}
uses: actions/cache@v3
with:
path: |
testenv
key: ${{ matrix.version }}-testenv-${{ hashFiles('**/setup.ant.xml') }}

- name: Build with Ant
run: xvfb-run ant -noinput dist test.${{ matrix.version }}
Expand Down

0 comments on commit c6f9323

Please sign in to comment.