-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (44 loc) · 1.12 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
42
43
44
45
name: CI
on:
push:
branches:
- master
- main
pull_request:
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: adopt
- run: sbt +test:compile # ensuring metabrowse compiles for all Scala versions
unit:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
scala: [2.12.19, 2.13.14]
os: [ubuntu-latest]
java: [11, 8]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-java@v4
with:
java-version: "${{ matrix.java }}"
distribution: adopt
- run: sbt ci-test
env:
SCALA_VERSION: ${{ matrix.scala }}
# See https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported/69699772#69699772
NODE_OPTIONS: "--openssl-legacy-provider"