-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 894 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
name: Continuous integration
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
ci:
runs-on: ubuntu-20.04
env:
SBT_NATIVE_CLIENT: true
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: [email protected]
- uses: coursier/[email protected]
- uses: coursier/setup-action@v1
with:
apps: cs
- run: "cs launch org.endpoints4s::stub-server:2.1.0 &"
- name: Scala 2.13 tests
run: sbt "++ 2.13 test"
- name: Scala 3 tests
run: |
sbt "++ 3.3 ;coverage; test; coverageReport; coverageAggregate"
bash <(curl -s https://codecov.io/bash)
- name: Version Policy Check
run: sbt versionPolicyCheck
- name: Code formatting
run: sbt scalafmtCheck