This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (76 loc) · 2.05 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
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/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v12
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:
jdk: [ [email protected] ]
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
TEST_TIME_FACTOR: 3
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v12
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: automerge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.CW_SCALA_STEWARD_TOKEN }}"
MERGE_LABELS: ""
MERGE_METHOD: "rebase"
MERGE_FILTER_AUTHOR: "cw-scala-steward"