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 1
1
version : 2.0
2
2
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
3
20
jobs :
4
21
test-larky :
5
22
docker :
6
- - image : cimg/openjdk:17.0.1
23
+ - image : maven:3.8.6-openjdk-11
7
24
steps :
8
25
- 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*' test -pl larky
10
44
11
45
workflows :
12
46
version : 2
You can’t perform that action at this time.
0 commit comments