Skip to content

Commit

Permalink
#83 GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-cherednik committed Oct 6, 2024
1 parent 83b1e69 commit cebe8de
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ tasks.withType(JavaCompile).configureEach {
}

dependencies {
annotationProcessor "org.projectlombok:lombok:${property('lombok.version')}"

implementation 'org.slf4j:slf4j-api:2.1.0-alpha1'
implementation 'commons-io:commons-io:2.17.0'
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'org.apache.commons:commons-collections4:4.5.0-M2'
implementation 'commons-codec:commons-codec:1.17.1'
implementation 'com.github.luben:zstd-jni:1.5.6-6'

annotationProcessor 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor "org.projectlombok:lombok:${property('lombok.version')}"

//noinspection VulnerableLibrariesLocal
testImplementation 'org.testng:testng:7.4.0'
Expand All @@ -53,8 +55,6 @@ dependencies {
//noinspection VulnerableLibrariesLocal
testImplementation 'de.idyl:winzipaes:1.0.1'
testImplementation 'org.tukaani:xz:1.10'

testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
}

jacocoTestReport {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.caching=false
lombok.version=1.18.30
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import ru.olegcherednik.zip4jvm.UnzipIt;
import ru.olegcherednik.zip4jvm.Zip4jvmSuite;
import ru.olegcherednik.zip4jvm.assertj.IDirectoryAssert;
Expand Down Expand Up @@ -106,9 +105,12 @@ public void shouldUnzipPosixZipWithSymlink() throws IOException {
assertThatDirectory(destDir).symlink(symlinkTrnDirNameData).hasTarget(symlinkAbsDirNameData + '/');
assertThatDirectory(destDir).symlink(symlinkAbsFileNameDucati).hasTarget(fileNameDucati);
assertThatDirectory(destDir).symlink(symlinkRelFileNameDucati).hasTarget(fileNameDucati);
assertThatDirectory(destDir).symlink(symlinkAbsFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkRelFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkTrnFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkAbsFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkRelFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkTrnFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
}

public void shouldUnzipWinZipWithSymlink() throws IOException {
Expand All @@ -133,9 +135,12 @@ public void shouldUnzipWinZipWithSymlink() throws IOException {
assertThatDirectory(destDir).symlink(symlinkTrnDirNameData).hasTarget(symlinkAbsDirNameData + '/');
assertThatDirectory(destDir).symlink(symlinkAbsFileNameDucati).hasTarget(fileNameDucati);
assertThatDirectory(destDir).symlink(symlinkRelFileNameDucati).hasTarget(fileNameDucati);
assertThatDirectory(destDir).symlink(symlinkAbsFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkRelFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkTrnFileNameHonda).hasTarget(zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkAbsFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkRelFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
assertThatDirectory(destDir).symlink(symlinkTrnFileNameHonda).hasTarget(
zipSymlinkAbsDirNameData + zipDirNameBikes + fileNameHonda);
}

@SuppressWarnings("FieldNamingConvention")
Expand Down

0 comments on commit cebe8de

Please sign in to comment.