forked from scalapb/protobuf-scala-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 794 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [2.12.x, 2.13.x, 3.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Mount caches
uses: actions/cache@v3
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Compile and test
shell: bash
run: |
set -e
sbt ++${{matrix.scala}} test
sbt scalafmtCheck Test/scalafmtCheck scalafmtSbtCheck
# Single final job for mergify.
ci-passed:
runs-on: ubuntu-latest
needs: build
steps:
- run: ':'