This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (53 loc) · 1.56 KB
/
pr-validation.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
name: PR Validation
on: [push, pull_request]
jobs:
scalaFmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: Cache SBT & ivy cache
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
- name: Check formatting
run: sbt scalafmtCheckAll
test:
name: Compile and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: Cache SBT & ivy cache
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
- name: Compile and test
run: sbt test
merge:
name: Merge dependency update
if: github.actor == 'scala-steward' || github.actor == 'JannikArndt'
needs:
- scalaFmt
- test
runs-on: ubuntu-latest
steps:
- name: Merge PR
uses: desbo/merge-pr-action@v0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOWED_UPDATE: minor
MERGE_METHOD: squash