Skip to content

Commit

Permalink
even simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Feb 23, 2024
1 parent 612216f commit 0901eef
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 25 deletions.
74 changes: 74 additions & 0 deletions .github/upgrade-test-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.foo</groupId>
<artifactId>morphia-reproducer</artifactId>
<version>1.0.0-SNAPSHOT</version>

<name>Morphia Reproducer project</name>
<url>https://github.com/MorphiaOrg/morphia</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<morphia.version>2.4.10</morphia.version>
<!-- use this one for version before 2.0 -->
<!-- <morphia.artifactId>core</morphia.artifactId>-->
<morphia.artifactId>morphia-core</morphia.artifactId>
<slf4j.version>2.0.12</slf4j.version>
</properties>

<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<source>11</source>
<target>11</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>dev.morphia.morphia</groupId>
<artifactId>${morphia.artifactId}</artifactId>
<version>${morphia.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.8.0</version>
</dependency>
<dependency>
<groupId>com.antwerkz.bottlerocket</groupId>
<artifactId>bottlerocket</artifactId>
<version>0.43.0</version>
</dependency>
</dependencies>
</project>
50 changes: 25 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
# with:
# java: 17

Build:
uses: evanchooly/workflows/.github/workflows/build.yml@master
with:
java: 17
saveBuild: true
# Build:
# uses: evanchooly/workflows/.github/workflows/build.yml@master
# with:
# java: 17
# saveBuild: true

# Matrix:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,8 +126,8 @@ jobs:
name: Upgrades
runs-on: ubuntu-latest
continue-on-error: true
needs:
- Build
# needs:
# - Build
strategy:
fail-fast: false
matrix:
Expand All @@ -139,28 +139,28 @@ jobs:
repository: MorphiaOrg/morphia
ref: ${{ matrix.morphia-branch }}
path: upgrade-test
- name: Restore cached build artifacts
uses: actions/cache@v3
with:
path: |
**/target
~/.m2/repository
key: cache-${{ github.run_number }}
restore-keys: target-cache-${{ github.run_number }}
fail-on-cache-miss: true
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
server-id: central
cache: maven
# - name: Restore cached build artifacts
# uses: actions/cache@v3
# with:
# path: |
# **/target
# ~/.m2/repository
# key: cache-${{ github.run_number }}
# restore-keys: target-cache-${{ github.run_number }}
# fail-on-cache-miss: true
# - name: Setup Java
# uses: actions/setup-java@v3
# with:
# java-version: 17
# distribution: 'zulu'
# server-id: central
# cache: maven
- name: Perform Upgrade and Test
run: |
pwd
ls ~/ #morphia/.github
ls ../.github
mvn install -DskipTests
ls ../
# mvn install -DskipTests
for i in *
do
[ -e $i/src/main/java ] && rm -rf $i/src/main/java
Expand Down

0 comments on commit 0901eef

Please sign in to comment.