Skip to content

Commit 4d7b19c

Browse files
committed
Migrate the CI to GitHub Actions.
Disable jsdom 16.x in the process, because it seems to be broken. This will need to be repaired afterwards.
1 parent 94921d4 commit 4d7b19c

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.10", "2.13.1"]
16+
jsdomversion: ["10.0.0"] # TODO: add "16.0.0"
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: olafurpg/setup-scala@v10
20+
with:
21+
java-version: "[email protected]"
22+
- uses: coursier/cache-action@v5
23+
- name: Use Node.js 12
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
- name: Install jsdom
28+
run: npm install "jsdom@${{ matrix.jsdomversion }}"
29+
- name: Unit tests
30+
run: sbt "++${{ matrix.scalaversion }}" scalajs-env-jsdom-nodejs/test
31+
- name: Doc generation
32+
run: sbt "++${{ matrix.scalaversion }}" scalajs-env-jsdom-nodejs/doc
33+
- name: Integration tests
34+
run: sbt "++${{ matrix.scalaversion }}" test-project/run test-project/test

.travis.yml

-29
This file was deleted.

0 commit comments

Comments
 (0)