diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100755 index 000000000..501570769 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +.github/ @lbialy @tgodzik \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2a79746c..ad0b0d8e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,8 +61,6 @@ jobs: env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} PGP_SECRET: ${{ secrets.PGP_SECRET }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} documentation: needs: test diff --git a/integration-tests/downloadYamlConfigs.sh b/integration-tests/downloadYamlConfigs.sh index ab22f4fe9..9e2debeff 100755 --- a/integration-tests/downloadYamlConfigs.sh +++ b/integration-tests/downloadYamlConfigs.sh @@ -26,13 +26,13 @@ do done -mkdir ./test-suite/jvm/src/it/resources/yaml/configs/ -find ./repositories -name '*.yaml' -exec cp -prv '{}' './test-suite/jvm/src/it/resources/yaml/configs/' ';' +mkdir -p ./src/test/resources/yaml/configs/ +find ./repositories -name '*.yaml' -exec cp -prv '{}' './src/test/resources/yaml/configs/' ';' LIB_YAML_PATH="" # Set the path to libyaml # In downloaded repositories contains some invalid yaml, below instructions can remove this yaml -for f in ./test-suite/jvm/src/it/resources/yaml/configs/*.yaml; do +for f in ./src/test/resources/yaml/configs/*.yaml; do cat $f | $LIB_YAML_PATH >/dev/null # if libyaml return error exit code, these means, that yaml is invalid diff --git a/integration-tests/src/test/scala/org/virtuslab/yaml/YamlRunnerSpec.scala b/integration-tests/src/test/scala/org/virtuslab/yaml/YamlRunnerSpec.scala index 2f4c7341b..407903849 100644 --- a/integration-tests/src/test/scala/org/virtuslab/yaml/YamlRunnerSpec.scala +++ b/integration-tests/src/test/scala/org/virtuslab/yaml/YamlRunnerSpec.scala @@ -10,7 +10,12 @@ abstract class YamlRunnerSpec extends munit.FunSuite { val verbose = false val predicate: os.Path => Boolean = _ => true - val yamlDirPath = getClass.getResource(resourcePath) + val yamlDirPath = getClass.getResource(resourcePath) + if (yamlDirPath == null) { + throw new IllegalArgumentException( + s"Resource $resourcePath not found, run integrations-tests/downloadYamlConfigs.sh first!" + ) + } val yamlDir = new File(yamlDirPath.getPath) val yamlPaths: List[os.Path] = yamlDir.listFiles().map(os.Path(_)).filter(predicate).toList