-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (63 loc) · 1.58 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- '.github/workflows/ci.yml'
pull_request:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- '.github/workflows/ci.yml'
schedule:
- cron: '0 * * * *'
jobs:
lint:
runs-on: ubuntu-latest
env:
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
- run: sbt -v lint
test:
strategy:
fail-fast: false
matrix:
jdk: [ 11, 17, 19 ]
scala: [ 2.13.12, 3.3.1 ]
runs-on: ubuntu-latest
needs: lint
env:
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
AWS_REGION: ap-northeast-1
TEST_TIME_FACTOR: 3
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: 'sbt'
- name: sbt test
run: sbt -v ++${{ matrix.scala }} test