Skip to content

Commit 6991da7

Browse files
committed
Try a GitHub Actions setup
1 parent 3218a44 commit 6991da7

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

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+
pull_request:
5+
push:
6+
branches: ['main']
7+
tags: ['v[0-9]']
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
java: [adopt@1.8, adopt@1.11]
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: olafurpg/setup-scala@v13
19+
with:
20+
java-version: ${{ matrix.java }}
21+
- uses: coursier/cache-action@v6
22+
- run: "sbt test mimaReportBinaryIssues 'set sbtplugin/scriptedSbt := \"1.2.8\"' 'scripted sbt-mima-plugin/minimal' IntegrationTest/test"
23+
testFunctional:
24+
needs: build
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
scala: [2.11, 2.12, 2.13, 3]
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: olafurpg/setup-scala@v13
33+
- uses: coursier/cache-action@v6
34+
- run: |
35+
case ${{ matrix.scala }} in
36+
2.11) sbt "functional-tests/runMain com.typesafe.tools.mima.lib.UnitTests -211" ;;
37+
2.12) sbt "functional-tests/runMain com.typesafe.tools.mima.lib.UnitTests -212" ;;
38+
2.13) sbt "functional-tests/runMain com.typesafe.tools.mima.lib.UnitTests -213" ;;
39+
3) sbt "functional-tests/runMain com.typesafe.tools.mima.lib.UnitTests -3" ;;
40+
esac
41+
testScripted:
42+
needs: build
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
scripted: [1of2, 2of2]
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
- uses: olafurpg/setup-scala@v13
51+
- uses: coursier/cache-action@v6
52+
- run: sbt "scripted sbt-mima-plugin/*${{ matrix.scripted }}"

0 commit comments

Comments
 (0)