File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
src/test/scala/org/virtuslab/yaml Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ .github / @ lbialy @ tgodzik
Original file line number Diff line number Diff line change 6161 env :
6262 PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
6363 PGP_SECRET : ${{ secrets.PGP_SECRET }}
64- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
65- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
6664
6765 documentation :
6866 needs : test
Original file line number Diff line number Diff line change 2626
2727done
2828
29- mkdir ./test-suite/jvm/ src/it /resources/yaml/configs/
30- find ./repositories -name ' *.yaml' -exec cp -prv ' {}' ' ./test-suite/jvm/ src/it /resources/yaml/configs/' ' ;'
29+ mkdir -p ./ src/test /resources/yaml/configs/
30+ find ./repositories -name ' *.yaml' -exec cp -prv ' {}' ' ./src/test /resources/yaml/configs/' ' ;'
3131
3232LIB_YAML_PATH=" " # Set the path to libyaml
3333
3434# In downloaded repositories contains some invalid yaml, below instructions can remove this yaml
35- for f in ./test-suite/jvm/ src/it /resources/yaml/configs/* .yaml; do
35+ for f in ./src/test /resources/yaml/configs/* .yaml; do
3636 cat $f | $LIB_YAML_PATH > /dev/null
3737
3838 # if libyaml return error exit code, these means, that yaml is invalid
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ abstract class YamlRunnerSpec extends munit.FunSuite {
1010 val verbose = false
1111 val predicate : os.Path => Boolean = _ => true
1212
13- val yamlDirPath = getClass.getResource(resourcePath)
13+ val yamlDirPath = getClass.getResource(resourcePath)
14+ if (yamlDirPath == null ) {
15+ throw new IllegalArgumentException (
16+ s " Resource $resourcePath not found, run integrations-tests/downloadYamlConfigs.sh first! "
17+ )
18+ }
1419 val yamlDir = new File (yamlDirPath.getPath)
1520 val yamlPaths : List [os.Path ] = yamlDir.listFiles().map(os.Path (_)).filter(predicate).toList
1621
You can’t perform that action at this time.
0 commit comments