-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (32 loc) · 904 Bytes
/
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scalaversion: ["2.11.12", "2.12.10", "2.13.1"]
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.8"
- uses: coursier/cache-action@v5
- name: Core unit tests
run: sbt "++${{ matrix.scalaversion }}" jsdependencies-core/test
- name: Core doc generation
run: sbt "++${{ matrix.scalaversion }}" jsdependencies-core/doc
- name: sbt plugin tests
if: matrix.scalaversion == '2.12.10'
run: |
sbt "++${{ matrix.scalaversion }}" jsdependencies-core/publishLocal sbt-jsdependencies/publishLocal && \
cd sbt-plugin-test && \
sbt testAll && \
cd ..