Skip to content

Commit

Permalink
Add action to run JDK EA tests every day
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 committed Jun 24, 2023
1 parent 1c2970b commit cd95ff7
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/jdk21.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: JDK21 Tests

on:
push:
workflow_dispatch:
schedule:
- cron: '30 11 * * *'

jobs:
test-javac:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21-ea
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: 21
version: latest

- name: Install Ant
run: |
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.13-bin.zip
unzip apache-ant-1.10.13-bin.zip -d "${HOME}"
echo "ANT_HOME=${HOME}/apache-ant-1.10.13" >> $GITHUB_ENV
echo "${HOME}/apache-ant-1.10.13/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
ivyCache
lib
key: ${{ runner.os }}-${{ hashFiles('**/ivy.xml') }}
restore-keys: |
${{ runner.os }}-
- name: Build and copy lombok.patcher
run: |
cd ${HOME}
git clone https://github.com/projectlombok/lombok.patcher.git
cd lombok.patcher
ant dist
mkdir -p ${GITHUB_WORKSPACE}/ivyCache/org.projectlombok/lombok.patcher/jars/
cp dist/lombok.patcher-0.47.jar ${GITHUB_WORKSPACE}/ivyCache/org.projectlombok/lombok.patcher/jars/
- name: Run tests
run: ant -noinput test.javacCurrent
14 changes: 14 additions & 0 deletions buildScripts/ivy-repo/org.projectlombok-lombok.patcher-0.47.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<ivy-module version="2.0">
<info organisation="org.projectlombok" module="lombok.patcher" revision="0.47" publication="20230408220000">
<license name="MIT License" url="https://www.opensource.org/licenses/mit-license.php" />
<ivyauthor name="rzwitserloot" url="https://github.com/rzwitserloot" />
<ivyauthor name="rspilker" url="https://github.com/rspilker" />
<description homepage="https://projectlombok.org/" />
</info>
<configurations>
<conf name="default" />
</configurations>
<publications>
<artifact conf="default" url="https://projectlombok.org/downloads/lombok.patcher-0.47.jar" />
</publications>
</ivy-module>
2 changes: 1 addition & 1 deletion buildScripts/ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</configurations>
<dependencies>

<dependency org="org.projectlombok" name="lombok.patcher" rev="0.46" conf="build,stripe->default" />
<dependency org="org.projectlombok" name="lombok.patcher" rev="0.47" conf="build,stripe->default" />
<dependency org="zwitserloot.com" name="cmdreader" rev="1.2" conf="build,stripe->runtime" />
<dependency org="org.apache.ant" name="ant" rev="1.10.5" conf="build->default" />
<dependency org="org.apache.ant" name="ant-junit" rev="1.10.5" conf="build->default" />
Expand Down

0 comments on commit cd95ff7

Please sign in to comment.