Skip to content

Commit 59f62df

Browse files
committed
add ci check for prs
1 parent ffa5f6c commit 59f62df

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
jobs:
13+
validate:
14+
name: Check code formatting
15+
runs-on: ubuntu-22.04
16+
17+
steps:
18+
- id: checkout
19+
name: Check out repo
20+
uses: actions/checkout@v4
21+
22+
- id: scala-setup
23+
name: Install Scala
24+
uses: actions/setup-java@v3
25+
with:
26+
distribution: temurin
27+
java-version: 21
28+
cache: sbt
29+
30+
- id: linter
31+
name: Lint code
32+
run: sbt scalafmtCheckAll
33+
tests:
34+
name: Run tests
35+
runs-on: ubuntu-22.04
36+
37+
steps:
38+
- id: checkout
39+
name: Check out repo
40+
uses: actions/checkout@v4
41+
42+
- id: scala-setup
43+
name: Install Scala
44+
uses: actions/setup-java@v3
45+
with:
46+
distribution: temurin
47+
java-version: 21
48+
cache: sbt
49+
50+
- id: test
51+
name: Run tests
52+
run: sbt coverage "testOnly * -- -l test_configuration.IntegrationTestTag" coverageReport

0 commit comments

Comments
 (0)