Skip to content

Commit 85f2ec4

Browse files
committed
Migrate the CI to GitHub Actions.
1 parent 6d78f6b commit 85f2ec4

File tree

2 files changed

+60
-54
lines changed

2 files changed

+60
-54
lines changed

.github/workflows/ci.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
browser: ["chrome"]
17+
include:
18+
- scalaversion: "2.12.10"
19+
browser: "firefox"
20+
env:
21+
SJS_TEST_BROWSER: ${{ matrix.browser }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: olafurpg/setup-scala@v10
25+
with:
26+
java-version: "[email protected]"
27+
- uses: coursier/cache-action@v5
28+
- name: Install Selenium drivers
29+
run: |
30+
wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
31+
unzip chromedriver_linux64.zip -d bin
32+
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
33+
tar xf geckodriver-v0.24.0-linux64.tar.gz -C bin
34+
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
35+
- name: Scalastyle
36+
run: >
37+
sbt "++${{ matrix.scalaversion }}"
38+
seleniumJSEnv/scalastyle
39+
seleniumJSEnv/test:scalastyle
40+
seleniumJSEnvTest/scalastyle
41+
seleniumJSHttpEnvTest/test:scalastyle
42+
seleniumJSEnvTest/test:scalastyle
43+
- name: MiMa
44+
run: sbt "++${{ matrix.scalaversion }}" seleniumJSEnv/mimaReportBinaryIssues
45+
- name: Unit tests
46+
run: sbt "++${{ matrix.scalaversion }}" seleniumJSEnv/test
47+
- name: Integration tests
48+
run: >
49+
sbt "++${{ matrix.scalaversion }}"
50+
seleniumJSEnvTest/test
51+
'set scalaJSStage in Global := FullOptStage'
52+
seleniumJSEnvTest/test
53+
- name: Start HTTP server
54+
run: "python3 -m http.server 8080 &"
55+
- name: Integration tests with HTTP server
56+
run: >
57+
sbt "++${{ matrix.scalaversion }}"
58+
seleniumJSHttpEnvTest/test
59+
'set scalaJSStage in Global := FullOptStage'
60+
seleniumJSHttpEnvTest/test

.travis.yml

-54
This file was deleted.

0 commit comments

Comments
 (0)