Skip to content

Commit e2a7453

Browse files
committed
Migrate the CI to GitHub Actions.
1 parent 8709a69 commit e2a7453

File tree

2 files changed

+31
-34
lines changed

2 files changed

+31
-34
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
scalaversion: ["2.11.12", "2.12.13", "2.13.4"]
16+
platform: ["JVM", "JS", "JS-0.6.x", "Native"]
17+
env:
18+
SCALAJS_VERSION: "${{ matrix.platform == 'JS-0.6.x' && '0.6.33' || '' }}"
19+
PROJECT_NAME: "portable-scala-reflect${{ matrix.platform == 'JS-0.6.x' && 'JS' || matrix.platform }}"
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: olafurpg/setup-scala@v10
23+
with:
24+
java-version: "adopt@1.8"
25+
- uses: coursier/cache-action@v5
26+
- name: Unit tests
27+
run: sbt "++${{ matrix.scalaversion }}" "${{ env.PROJECT_NAME }}/test"
28+
- name: Test generate documentation
29+
run: sbt "++${{ matrix.scalaversion }}" "${{ env.PROJECT_NAME }}/doc"
30+
- name: MiMa
31+
run: sbt "++${{ matrix.scalaversion }}" "${{ env.PROJECT_NAME }}/mimaReportBinaryIssues"

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)