-
Notifications
You must be signed in to change notification settings - Fork 455
36 lines (35 loc) · 947 Bytes
/
rewrite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Rewrite Tests
on:
push:
branches:
- 'master'
- '2.4.x'
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
Rewrite:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 2.4.x
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
server-id: central
cache: maven
- name: Initial Build
run: ./mvnw install -DskipTests
# - name: Hide core's main
# run: rm -rf core/src/main/java
- name: Apply rewrites
run: |
./mvnw -e -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=dev.morphia.morphia:rewrite:3.0.0-SNAPSHOT \
-Drewrite.activeRecipes=dev.morphia.UpgradeToMorphia30
- name: Test Compile
run: ./mvnw test-compile