forked from scalameta/mdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 913 Bytes
/
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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
checks:
name: Scalafmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- run: ./bin/scalafmt --test
docs:
name: Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- run: sbt docs/mdoc
test:
name: ${{ matrix.command }} ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [adopt@1.8, adopt@1.11]
command:
- "'++2.11.12 test'"
- "'++2.12.11 test' scripted"
- "'++2.13.2 test'"
- "'++3.0.0-M1 test'"
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
with:
java-version: ${{ matrix.java }}
- run: sbt ${{ matrix.command }}