Skip to content

Commit 1bfc89b

Browse files
committed
Sample
1 parent 31bfc42 commit 1bfc89b

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/pull_request.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,46 @@ jobs:
1919

2020
- name: Check code format
2121
run: sbt scalafmtCheckAll
22+
#
23+
# - name: Compile
24+
# run: sbt compile
25+
#
26+
# - name: Run tests
27+
# run: sbt test
28+
#
29+
# - name: Publish local
30+
# run: sbt +publishLocal
2231

23-
- name: Compile
24-
run: sbt compile
32+
# Examples
33+
- name: Test2
34+
run: sbt version | tail -n 2 | head | cut -c 18-
2535

26-
- name: Run tests
27-
run: sbt test
36+
- name: Test2
37+
run: sbt version | tail -n 2 | head | cut -c 19-
2838

29-
- name: Publish local
30-
run: sbt +publishLocal
39+
- name: Test2
40+
run: sbt version | tail -n 2 | head | cut -c 20-
3141

32-
# Examples
33-
- name: Compile examples - check library version
34-
run: sbt version | tail -n 1 | awk -F " " '{print $2}' > .version
42+
- name: Test2
43+
run: sbt version | tail -n 2 | head | cut -c 21-
44+
45+
- name: Test2
46+
run: sbt version | tail -n 2 | head | cut -c 22-
47+
48+
- name: Test2
49+
run: sbt version | tail -n 2 | head | cut -c 23-
50+
51+
- name: Test2
52+
run: sbt version | tail -n 2 | head | cut -c 24-
3553

36-
- name: Compile examples - set library version
37-
run: sed -i -e "s#SCALAJS_CHROME_VERSION#$(cat .version)#" examples/project/plugins.sbt && sed -i -e "s#SCALAJS_CHROME_VERSION#$(cat .version)#" examples/build.sbt
54+
- name: Test2
55+
run: sbt version | tail -n 2 | head | cut -c 25-
3856

39-
- name: Compile examples
40-
run: cd examples && sbt compile
57+
# - name: Update examples/build.sbt
58+
# run: sed -i -e "s#SCALAJS_CHROME_VERSION#$(sbt version | sed '/^[[:blank:]]*$/ d' | tail -n 1 | awk -F ' ' '{print $2}')#" examples/build.sbt
59+
#
60+
# - name: Update examples/project/plugins.sbt
61+
# run: sed -i -e "s#SCALAJS_CHROME_VERSION#$(sbt version | sed '/^[[:blank:]]*$/ d' | tail -n 1 | awk -F ' ' '{print $2}')#" examples/project/plugins.sbt
62+
#
63+
# - name: Compile examples
64+
# run: cd examples && cat build.sbt && sbt chromePackage

0 commit comments

Comments
 (0)