forked from projectlombok/lombok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action to run JDK EA tests every day
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
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 |
---|---|---|
@@ -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
14
buildScripts/ivy-repo/org.projectlombok-lombok.patcher-0.47.xml
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 |
---|---|---|
@@ -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> |
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