Skip to content

Commit eb4101d

Browse files
author
Merlin Rabens
authored
Update ci.yml
1 parent 67d8b5c commit eb4101d

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
name: CI
22
on:
33
push:
4+
branches:
5+
- $default-branch
6+
pull_request:
7+
branches:
8+
- $default-branch
9+
workflow_dispatch:
410
jobs:
511
build:
612
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()

0 commit comments

Comments
 (0)