-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (34 loc) · 890 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
35
36
37
38
39
40
41
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
scala: [JVM2_12, JVM2_13, JVM3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Download test executor
run: |
./make_harness.sh
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Compile and test
run: |
sbt "core${{matrix.scala}}/test" "codeGen${{matrix.scala}}/test" "e2e${{matrix.scala}}/test" "e2e${{matrix.scala}}/Test/runMain scalapb.validate.ScalaHarness"
- name: Formatting
run: |
sbt scalafmtCheckAll scalafmtSbtCheck
- name: Run example project
run: |
cd example
sbt run
# Single final job for mergify.
ci-passed:
runs-on: ubuntu-latest
needs: build
steps:
- run: ':'