Skip to content

Commit cd7a4e8

Browse files
committed
Add improved build with artifact upload
1 parent 122bdfb commit cd7a4e8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/tests.yml renamed to .github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ jobs:
3030
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3131
path: ~/.m2
3232
restore-keys: ${{ runner.os }}-m2
33-
- name: Run tests
34-
run: mvn clean test
33+
- name: Install and run tests
34+
run: mvn clean install
35+
- name: Upload Artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: convex-jar
39+
path: convex-integration/target/convex.jar # Path to the built .jar
40+
retention-days: 7 # Optional: Set retention period

convex-core/src/test/java/convex/core/util/EconomicsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void testPoolPrice() {
4141
// selling into pool at zero price
4242
checkSwap(0, -1, 1, 1);
4343

44-
// Overflow casess
44+
// Overflow cases
4545
assertEquals(Long.MAX_VALUE, Economics.swapPrice(Long.MAX_VALUE-1, Long.MAX_VALUE, 10));
4646
assertEquals(Long.MAX_VALUE, Economics.swapPrice(1, 10, Long.MAX_VALUE));
4747

0 commit comments

Comments
 (0)