@@ -20,11 +20,16 @@ jobs:
20
20
# fetch-depth: 0 indicates all history. (CMT requires them)
21
21
fetch-depth : 0
22
22
23
- - name : Checkout Course Management Tools
24
- uses : actions/checkout@v2
23
+ - name : Setup Course Management Tools
24
+ uses : robinraju/release-downloader@v1
25
25
with :
26
- repository : lightbend/course-management-tools
27
- path : CMT
26
+ repository : eloots/course-management-tools
27
+ tag : " 1.0.0"
28
+ fileName : " course-management-tools.zip"
29
+ out-file-path : " ."
30
+ - run : |
31
+ unzip course-management-tools.zip
32
+ echo "::add-path::$GITHUB_WORKSPACE/course-management-tools/bin"
28
33
29
34
- name : Set up JDK 11
30
35
uses : actions/setup-java@v1
@@ -53,13 +58,12 @@ jobs:
53
58
run : |
54
59
git config --global user.email "[email protected] "
55
60
git config --global user.name "Lunatech Labs"
56
- (cd CMT/ && exec sbt " mainadm -dot -t ../ runTests $GITHUB_WORKSPACE/course-repo")
61
+ cmt- mainadm -dot -t runTests.sh $GITHUB_WORKSPACE/course-repo
57
62
58
63
- name : Run Tests
59
64
run : |
60
- chmod +x runTests
61
- export PATH=${PATH}:$GITHUB_WORKSPACE/CMT/bin
62
- ./runTests
65
+ chmod +x runTests.sh
66
+ ./runTests.sh
63
67
64
68
create_release :
65
69
runs-on : ubuntu-latest
@@ -68,19 +72,24 @@ jobs:
68
72
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
69
73
70
74
steps :
71
-
72
- - name : Checkout Course Management Tools
73
- uses : actions/checkout@v2
74
- with :
75
- repository : lightbend/course-management-tools
76
- path : CMT
77
75
78
76
- name : Checkout Course Repo
79
77
uses : actions/checkout@v2
80
78
with :
81
79
path : lunatech-scala-2-to-scala3-course
82
80
fetch-depth : 0
83
81
82
+ - name : Setup Course Management Tools
83
+ uses : robinraju/release-downloader@v1
84
+ with :
85
+ repository : eloots/course-management-tools
86
+ tag : " 1.0.0"
87
+ fileName : " course-management-tools.zip"
88
+ out-file-path : " ."
89
+ - run : |
90
+ unzip course-management-tools.zip
91
+ echo "::add-path::$GITHUB_WORKSPACE/course-management-tools/bin"
92
+
84
93
- name : Set up JDK 11
85
94
uses : actions/setup-java@v1
86
95
with :
@@ -110,13 +119,13 @@ jobs:
110
119
export PATH=${PATH}:$GITHUB_WORKSPACE/CMT/bin
111
120
git config --global user.email "[email protected] "
112
121
git config --global user.name "Lunatech Labs"
113
- (cd CMT/ && exec sbt " studentify -dot -g ../ lunatech-scala-2-to-scala3-course ../ studentified")
122
+ cmt- studentify -dot -g lunatech-scala-2-to-scala3-course studentified
114
123
(cd studentified && exec zip -r lunatech-scala-2-to-scala3-course-student.zip lunatech-scala-2-to-scala3-course)
115
124
116
125
- name : Linearize Repo
117
126
run : |
118
127
mkdir -p linearized
119
- (cd CMT/ && exec sbt " linearize -dot ../ lunatech-scala-2-to-scala3-course ../ linearized")
128
+ cmt- linearize -dot lunatech-scala-2-to-scala3-course linearized
120
129
mv linearized/lunatech-scala-2-to-scala3-course linearized/lunatech-scala-2-to-scala3-course-linearized
121
130
(cd linearized && exec zip -r lunatech-scala-2-to-scala3-course-linearized.zip lunatech-scala-2-to-scala3-course-linearized)
122
131
0 commit comments