Skip to content

Commit 802e892

Browse files
committed
chore: update workflow
1 parent b5fec32 commit 802e892

File tree

4 files changed

+19
-56
lines changed

4 files changed

+19
-56
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ jobs:
2626
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: ${{ runner.os }}-m2
2828

29-
- name: Run tests
30-
run: mvn test
31-
29+
- name: Run tests with coverage
30+
run: mvn test jacoco:report
31+
3232
- name: Build project
33-
run: mvn clean package
33+
run: mvn clean package
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v5
37+
with:
38+
file: target/site/jacoco/jacoco.xml
39+
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![codecov](https://codecov.io/gh/ayonious/File-Compression/branch/master/graph/badge.svg)](https://codecov.io/gh/ayonious/File-Compression)
55
[![GitHub stars](https://img.shields.io/github/stars/ayonious/File-Compression?style=social)](https://github.com/ayonious/File-Compression/stargazers)
66

7-
A File Compression software that helps zip/Unzip files using these 2 algorihtms:
7+
A File Compression software that helps zip/Unzip files using these 2 algorithms:
88

99
1. Huffmans Code
1010
2. Lempel-Ziv-Wells algorithm

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@
1313
<maven.compiler.target>21</maven.compiler.target>
1414
<maven.compiler.release>21</maven.compiler.release>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<jacoco.version>0.8.12</jacoco.version>
16+
<jacoco.version>0.8.14</jacoco.version>
1717
</properties>
1818

1919
<dependencies>
2020
<!-- JUnit for testing -->
2121
<dependency>
2222
<groupId>org.junit.jupiter</groupId>
2323
<artifactId>junit-jupiter</artifactId>
24-
<version>5.10.2</version>
24+
<version>5.11.4</version>
2525
<scope>test</scope>
2626
</dependency>
2727

2828
<!-- SLF4J API for logging -->
2929
<dependency>
3030
<groupId>org.slf4j</groupId>
3131
<artifactId>slf4j-api</artifactId>
32-
<version>2.0.9</version>
32+
<version>2.0.16</version>
3333
</dependency>
3434

3535
<!-- Logback Classic (includes logback-core) -->
3636
<dependency>
3737
<groupId>ch.qos.logback</groupId>
3838
<artifactId>logback-classic</artifactId>
39-
<version>1.4.14</version>
39+
<version>1.5.19</version>
4040
</dependency>
4141
</dependencies>
4242

@@ -46,7 +46,7 @@
4646
<plugin>
4747
<groupId>org.apache.maven.plugins</groupId>
4848
<artifactId>maven-assembly-plugin</artifactId>
49-
<version>3.3.0</version>
49+
<version>3.7.1</version>
5050
<configuration>
5151
<archive>
5252
<manifest>
@@ -72,7 +72,7 @@
7272
<plugin>
7373
<groupId>org.codehaus.mojo</groupId>
7474
<artifactId>exec-maven-plugin</artifactId>
75-
<version>3.0.0</version>
75+
<version>3.6.1</version>
7676
<configuration>
7777
<mainClass>prog.Main</mainClass>
7878
</configuration>
@@ -82,7 +82,7 @@
8282
<plugin>
8383
<groupId>org.apache.maven.plugins</groupId>
8484
<artifactId>maven-surefire-plugin</artifactId>
85-
<version>3.2.5</version>
85+
<version>3.5.4</version>
8686
<configuration>
8787
<argLine>
8888
--add-opens java.base/java.lang=ALL-UNNAMED

0 commit comments

Comments
 (0)