-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (85 loc) · 2.38 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- 'project/build.properties'
- '.github/workflows/ci.yml'
pull_request:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- 'project/build.properties'
- '.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/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
with:
java-version: "[email protected]"
- uses: coursier/cache-action@v6
- run: sbt -v lint
- name: clean up
run: "${GITHUB_WORKSPACE}/.github/clean-up.sh"
test:
strategy:
fail-fast: false
matrix:
scala: [ 2.13.5 ] # , 2.12.13, 2.11.12 ]
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/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.jdk }}
- uses: coursier/cache-action@v6
- name: sbt test
run: sbt -v ++${{ matrix.scala }} test
- name: clean up
run: "${GITHUB_WORKSPACE}/.github/clean-up.sh"
automerge:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs: test
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: 111353
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: automerge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}"
MERGE_LABELS: ""
MERGE_METHOD: "rebase"
MERGE_FILTER_AUTHOR: "sisioh-bot[bot]"