-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (41 loc) · 1.42 KB
/
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:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scalaversion: ["2.11.12", "2.12.13", "2.13.4"]
platform: ["JVM", "JS", "JS-0.6.x", "Native"]
include:
# Earliest Scala versions supported by Scala Native 0.5.x
- platform: "Native-0.5.x"
scalaversion: "2.12.14"
- platform: "Native-0.5.x"
scalaversion: "2.13.8"
env:
SCALAJS_VERSION: "${{ matrix.platform == 'JS-0.6.x' && '0.6.33' || '' }}"
SCALANATIVE_VERSION: "${{ matrix.platform == 'Native-0.5.x' && '0.5.2' || '' }}"
PROJECT_NAME: "portable-scala-reflect${{ matrix.platform == 'JS-0.6.x' && 'JS' || matrix.platform == 'Native-0.5.x' && 'Native' || matrix.platform }}"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: '16.x'
- uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.8"
- uses: coursier/cache-action@v5
- name: Unit tests
run: sbt "++${{ matrix.scalaversion }}!" "${{ env.PROJECT_NAME }}/test"
- name: Test generate documentation
run: sbt "++${{ matrix.scalaversion }}!" "${{ env.PROJECT_NAME }}/doc"
- name: MiMa
run: sbt "++${{ matrix.scalaversion }}!" "${{ env.PROJECT_NAME }}/mimaReportBinaryIssues"