-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
java:
- 8
- 21
class:
- ExampleByteStringFormatter
- ExamplePubSub
- ExampleRediscalaBlocking
- ExampleScripting
- ExampleTransaction
- Main
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{matrix.java}}
distribution: adopt
- uses: sbt/setup-sbt@v1
- run: sbt scalafmtSbtCheck "+ scalafmtCheckAll" "+ Test/compile"
- run: sbt "runMain ${{ matrix.class }}"
finish:
runs-on: ubuntu-latest
timeout-minutes: 2
needs:
- test
steps:
- run: echo finish