-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1.05 KB
/
surge-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:
pull_request:
branches:
- main
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: lint
run: 'sbt scalastyle && sbt "scalafmtCheckAll;scalafmtSbtCheck"'
- name: Check cross-compile
run: 'sbt +compile'
- name: Check Akka Version Compatibility
run: 'sbt checkAkkaModuleVersions'
#- name: check-binary-compatibility
# run: 'sbt mimaReportBinaryIssues'
- name: test
run: 'sbt clean coverage test coverageReport coverageAggregate'
- name: publish test report
uses: mikepenz/action-junit-report@v2
if: 'always()'
with:
report_paths: 'target/test-reports/*.xml'
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: build docs
run: 'sbt surge-docs/clean surge-docs/makeSite'