File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed
Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change 11version : 2.0
22
3+ setup-maven-distributions : &setup-maven-distributions
4+ run :
5+ name : Setup distrubution servers for larky
6+ command : |
7+ mkdir -p ~/.m2
8+ cat <<EOF > ~/.m2/settings.xml
9+ <settings>
10+ <servers>
11+ <server>
12+ <id>github</id>
13+ <username>$GITHUB_USERNAME</username>
14+ <password>$GITHUB_API_TOKEN</password>
15+ </server>
16+ </servers>
17+ </settings>
18+ EOF
19+ echo $GITHUB_USERNAME
320jobs :
421 test-larky :
522 docker :
6- - image : cimg/openjdk:17.0.1
23+ - image : maven:3-openjdk-11
724 steps :
825 - checkout
9- - run : make test-larky
26+ - << : *setup-maven-distributions
27+ - run :
28+ name : Clone starlarky
29+ command : |
30+ git clone git@github.com:verygoodsecurity/starlarky.git ./tmp/starlarky
31+ - run :
32+ name : Remove default quick_tests
33+ command : |
34+ rm -f ./tmp/starlarky/larky/src/test/resources/quick_tests/**.star
35+ - run :
36+ name : Copy code example tests to quick_tests folder
37+ command : |
38+ cp $(find ./integrations/larky/ | grep .star) ./tmp/starlarky/larky/src/test/resources/quick_tests/
39+ - run :
40+ name : Test Larky
41+ command : |
42+ cd ./tmp/starlarky
43+ mvn -Dtest='LarkyQuickTests*' dependency:go-offline test -pl larky
1044
1145workflows :
1246 version : 2
You can’t perform that action at this time.
0 commit comments