forked from swagger-api/swagger-play
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 907 Bytes
/
build.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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
play-version: [ 2.7.3, 2.7.9, 2.8.0, 2.8.7, 2.8.8, 2.8.20 ]
java-version: [ 8, 11 ]
include:
- play-version: 2.9.0
java-version: 11
- play-version: 3.0.0
java-version: 11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt', '**/plugins.sbt') }}-play${{ matrix.play-version }}
- name: Run tests
run: sbt "testPlayVersion ${{ matrix.play-version }}"