-
Notifications
You must be signed in to change notification settings - Fork 20
49 lines (47 loc) · 1.6 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
name: CI
on:
push:
branches: master
pull_request:
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Label PR
if: github.event_name == 'pull_request'
uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Setup Scala
uses: olafurpg/setup-scala@v10
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-coursier-
- name: Cache .sbt
uses: actions/[email protected]
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-sbt-
- name: Run checks
run: sbt validate
- name: Automerge Scala Steward PRs
if: success() && github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'Scala Steward')
uses: ridedott/[email protected]
with:
GITHUB_LOGIN: pepegar
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Dependabot Merge
if: success()
uses: ridedott/[email protected]
with:
GITHUB_LOGIN: dependabot[bot]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}