-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (37 loc) · 1.03 KB
/
main.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
name: Run Tests
on:
push:
branches: [master]
pull_request:
jobs:
code-style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Check code style
run: sbt scalafmtCheckAll scalafmtSbtCheck "scalafixAll --check"
tests:
runs-on: ubuntu-latest
strategy:
matrix:
scala-version: [ "2.12", "2.13" ]
test-set: [ "probe", "scala" ]
fail-fast: false
steps:
- uses: actions/[email protected]
- name: Prepare the environment
run: |
git fetch --tags
sbt ci/generateScripts
ci/tests/build_image
- name: Run tests
env:
SCALA_VERSION: ${{ matrix.scala-version }}
TEST_SET: ${{ matrix.test-set }}
run: ci/tests/run $TEST_SET $SCALA_VERSION
- name: Upload screenshots
if: always()
uses: actions/upload-artifact@v2
with:
name: screenshots-${{ matrix.test-set }}_${{ matrix.scala-version }}
path: /tmp/ide-probe/screenshots