Skip to content

Commit 1fc0622

Browse files
committed
Add GitHub Action on Pull Request
1 parent 429f422 commit 1fc0622

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/pull_request.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
permissions:
8+
contents: read
9+
10+
env:
11+
LOG_LEVEL: DEBUG
12+
CASSANDRA_LOG_LEVEL: DEBUG
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: '11'
25+
distribution: 'temurin'
26+
cache: 'sbt'
27+
28+
- uses: sbt/setup-sbt@v1
29+
30+
- name: Check formatting, scalafix, and headers
31+
run: sbt styleCheck
32+
33+
- name: Check MiMa
34+
run: sbt mimaReportBinaryIssues
35+
36+
- name: Check docs
37+
run: sbt docs/mdoc
38+
39+
- name: Test Coverage
40+
run: sbt testCoverage

0 commit comments

Comments
 (0)