File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
3
push :
4
+ branches :
5
+ - $default-branch
6
+ pull_request :
7
+ branches :
8
+ - $default-branch
9
+ workflow_dispatch :
4
10
jobs :
5
11
build :
6
12
runs-on : ubuntu-latest
7
- steps :
8
- - uses : actions/checkout@v1
9
- - uses : olafurpg/setup-scala@v2
10
- - name : Compile
11
- run : csbt compile
12
-
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/setup-java@v1
16
+ with :
17
+ java-version : 8
18
+ - uses : coursier/cache-action@v5
19
+ - id : test
20
+ name : Test
21
+ env :
22
+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
23
+ run : sbt test
24
+ - name : Send slack notification
25
+ uses : act10ns/slack@v1
26
+ env :
27
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
28
+ with :
29
+ status : ${{ job.status }}
30
+ steps : ${{ toJson(steps) }}
31
+ if : secrets.SLACK_WEBHOOK_URL && failure()
You can’t perform that action at this time.
0 commit comments