ci(mergify): upgrade configuration to current format #874
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
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: ':' |