-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1005 Bytes
/
test.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
name: Build Pull Requests
on:
push:
branches: [ main, 0.1.x ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v2
- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/build.sbt') }}
- name: Cache Sbt
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 15
- name: "2.13 Test"
if: ${{ github.base_ref == 'main' }}
run: sbt "++ 2.13.6 test"
- name: "2.12 Test"
if: ${{ github.base_ref == 'main' }}
run: sbt "++ 2.12.14 test"
- name: "2.11 Test"
if: ${{ github.base_ref == '0.1.x' }}
run: sbt "++ 2.11.12 test"