Skip to content

Commit b25b0a3

Browse files
authored
Update Workflows / Dependencies (williamfiset#391)
* Disable caching by actions/setup-java * Configure Dependabot * Bump up dependencies * Update code formatting * Change Dependabot to run on a weekly schedule See williamfiset#391 (comment) for context
1 parent a77c0b5 commit b25b0a3

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "gradle"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/gradle.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
with:
2525
java-version: 11
2626
distribution: 'temurin'
27-
cache: 'gradle'
2827
- name: Validate Gradle Wrapper
2928
uses: gradle/wrapper-validation-action@v1
3029
- name: Setup and execute tests via Gradle
@@ -51,7 +50,6 @@ jobs:
5150
with:
5251
java-version: 11
5352
distribution: 'temurin'
54-
cache: 'gradle'
5553
- name: Validate Gradle Wrapper
5654
uses: gradle/wrapper-validation-action@v1
5755
- name: Verify all Java files are formatted correctly according to the Google Java Style Guide using Gradle

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88

99
plugins {
1010
// https://github.com/diffplug/spotless
11-
id("com.diffplug.spotless") version "6.18.0"
11+
id("com.diffplug.spotless") version "6.20.0"
1212
}
1313

1414
apply plugin: 'java'
@@ -25,14 +25,14 @@ repositories {
2525
// 'compile' for project dependencies.
2626
dependencies {
2727
// Apache commons lang
28-
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
28+
testImplementation 'org.apache.commons:commons-lang3:3.13.0'
2929

3030
// JUnit 5 / Jupiter
31-
testImplementation('org.junit.jupiter:junit-jupiter:5.9.3')
32-
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.9.3')
31+
testImplementation('org.junit.jupiter:junit-jupiter:5.10.0')
32+
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.10.0')
3333

3434
// Google Guava lib
35-
testImplementation group: 'com.google.guava', name: 'guava', version: '23.0'
35+
testImplementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre'
3636

3737
// Google Truth test framework
3838
// https://mvnrepository.com/artifact/com.google.truth/truth

src/main/java/com/williamfiset/algorithms/datastructures/balancedtree/TreapTree.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public String getText() {
5757
return value.toString();
5858
}
5959
}
60+
6061
// The root node of the Treap tree.
6162
public Node root;
6263

src/main/java/com/williamfiset/algorithms/graphtheory/Boruvkas.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public Edge(int u, int v, int cost) {
1717
public String toString() {
1818
return String.format("%d %d, cost: %d", u, v, cost);
1919
}
20+
2021
// @Override
2122
public int compareTo(Edge other) {
2223
int cmp = cost - other.cost;

src/main/java/com/williamfiset/algorithms/graphtheory/KruskalsEdgeListPartialSortSolver.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ public class KruskalsEdgeListPartialSortSolver {
1717

1818
static class Edge implements Comparable<Edge> {
1919
int u, v, cost;
20+
2021
// 'u' and 'v' are nodes indexes and 'cost' is the cost of taking this edge.
2122
public Edge(int u, int v, int cost) {
2223
this.u = u;
2324
this.v = v;
2425
this.cost = cost;
2526
}
27+
2628
// Sort edges based on cost.
2729
@Override
2830
public int compareTo(Edge other) {

src/test/java/com/williamfiset/algorithms/datastructures/priorityqueue/MinDHeapTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public void testRemovingDuplicates() {
195195
assertThat(pq.poll()).isEqualTo(11);
196196
assertThat(pq.poll()).isEqualTo(13);
197197
}
198+
198199
/*
199200
@Test
200201
public void testRandomizedPolling() {

0 commit comments

Comments
 (0)