-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (38 loc) · 1.23 KB
/
sbt-test.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
name: sbt test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
- name: Install locales
run: sudo apt-get -y install locales
- name: Fix up git URLs
run: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Run Tests
run: sbt "coverage; test; coverageReport; coverageAggregate;"
- name: Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: target/scala-2.13/coverage-report/cobertura.xml
badge: true
format: "markdown"
indicators: false
hide_complexity: true
output: "both"
- name: Coverage Report Pull Request Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: Coverage Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY