Skip to content

Commit 456b2d3

Browse files
committed
2 parents 00ceb44 + 01edd82 commit 456b2d3

File tree

5 files changed

+90
-11
lines changed

5 files changed

+90
-11
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
- package-ecosystem: "github-actions"
13+
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
14+
directory: "/"
15+
schedule:
16+
interval: "daily"

.github/workflows/build-report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636
with:
3737
submodules: recursive
3838
token: ${{ secrets.PAT_TOKEN }}
@@ -42,14 +42,14 @@ jobs:
4242
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
4343
restore-keys: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
4444
- name: Set up JDK 17
45-
uses: actions/setup-java@v3
45+
uses: actions/setup-java@v4
4646
with:
4747
distribution: temurin
4848
java-version: 17
4949
- name: Build with Maven
5050
run: mvn -B package --file pom.xml
5151
- name: Upload Jacoco report artifact
52-
uses: actions/upload-artifact@v1
52+
uses: actions/upload-artifact@v4
5353
with:
5454
name: jacoco-report
5555
path: target/site/jacoco/jacoco.xml
@@ -58,9 +58,9 @@ jobs:
5858
runs-on: ubuntu-latest
5959
needs: build
6060
steps:
61-
- uses: actions/checkout@v3
61+
- uses: actions/checkout@v4
6262
- name: Download Jacoco report artifact
63-
uses: actions/download-artifact@v3
63+
uses: actions/download-artifact@v4
6464
with:
6565
name: jacoco-report
6666
path: target/site/jacoco

.github/workflows/codacy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow checks out code, performs a Codacy security scan
7+
# and integrates the results with the
8+
# GitHub Advanced Security code scanning feature. For more information on
9+
# the Codacy security scan action usage and parameters, see
10+
# https://github.com/codacy/codacy-analysis-cli-action.
11+
# For more information on Codacy Analysis CLI in general, see
12+
# https://github.com/codacy/codacy-analysis-cli.
13+
14+
name: Codacy Security Scan
15+
16+
on:
17+
push:
18+
branches: [ "master" ]
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches: [ "master" ]
22+
schedule:
23+
- cron: '35 23 * * 4'
24+
25+
permissions:
26+
contents: read
27+
28+
jobs:
29+
codacy-security-scan:
30+
permissions:
31+
contents: read # for actions/checkout to fetch code
32+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
33+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
34+
name: Codacy Security Scan
35+
runs-on: ubuntu-latest
36+
steps:
37+
# Checkout the repository to the GitHub Actions runner
38+
- name: Checkout code
39+
uses: actions/checkout@v3
40+
41+
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
42+
- name: Run Codacy Analysis CLI
43+
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
44+
with:
45+
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
46+
# You can also omit the token and run the tools that support default configurations
47+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
48+
verbose: true
49+
output: results.sarif
50+
format: sarif
51+
# Adjust severity of non-security issues
52+
gh-code-scanning-compat: true
53+
# Force 0 exit code to allow SARIF file generation
54+
# This will handover control about PR rejection to the GitHub side
55+
max-allowed-issues: 2147483647
56+
57+
# Upload the SARIF file generated in the previous step
58+
- name: Upload SARIF results file
59+
uses: github/codeql-action/upload-sarif@v2
60+
with:
61+
sarif_file: results.sarif

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<lombok.version>1.18.30</lombok.version>
1313
<!-- Testing -->
14-
<junit.jupiter.version>5.8.1</junit.jupiter.version>
14+
<junit.jupiter.version>5.10.1</junit.jupiter.version>
1515
<junit.platform.version>1.8.2</junit.platform.version>
1616
<!-- Plugins -->
17-
<maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
18-
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
17+
<maven-surefire-plugin.version>3.2.3</maven-surefire-plugin.version>
18+
<maven-compiler-plugin.version>3.12.0</maven-compiler-plugin.version>
1919
<maven.compiler.release>17</maven.compiler.release>
2020
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
2121
</properties>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>nl.jqno.equalsverifier</groupId>
3333
<artifactId>equalsverifier</artifactId>
34-
<version>3.8</version>
34+
<version>3.15.4</version>
3535
<scope>test</scope>
3636
</dependency>
3737
<!-- Others -->
@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>com.fasterxml.jackson.core</groupId>
5858
<artifactId>jackson-databind</artifactId>
59-
<version>2.12.7.1</version>
59+
<version>2.16.0</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>com.google.code.gson</groupId>
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>org.apache.commons</groupId>
6969
<artifactId>commons-lang3</artifactId>
70-
<version>3.12.0</version>
70+
<version>3.14.0</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.apache.commons</groupId>

src/test/java/com/adventofcode/flashk/day19/Day19Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void testSolvePart1Input() {
7474
@Tag(TestTag.PART_TWO)
7575
@Tag(TestTag.SAMPLE)
7676
@DisplayName(TestDisplayName.PART_TWO_SAMPLE)
77+
@Disabled
7778
public void testSolvePart2Sample() {
7879

7980
System.out.print("2 | sample | ");
@@ -92,6 +93,7 @@ public void testSolvePart2Sample() {
9293
@Tag(TestTag.PART_TWO)
9394
@Tag(TestTag.INPUT)
9495
@DisplayName(TestDisplayName.PART_TWO_INPUT)
96+
@Disabled
9597
public void testSolvePart2Input() {
9698

9799
System.out.print("2 | input | ");

0 commit comments

Comments
 (0)