-
Notifications
You must be signed in to change notification settings - Fork 43
53 lines (50 loc) · 1.47 KB
/
scala.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
46
47
48
49
50
51
52
53
name: Scala CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: 'windows-latest'
java: 11
- os: 'ubuntu-latest'
java: 11
- os: 'macos-latest'
java: 11
runs-on: ${{ matrix.os }}
steps:
# See https://github.com/olafurpg/setup-scala#configuring-windows-jobs
- name: Configure git
shell: bash
run: "git config --global core.autocrlf false"
- name: Checkout
uses: actions/checkout@v2
- name: Set up Scala and JDK 1.${{ matrix.java }}
uses: olafurpg/setup-scala@v11
with:
# Should probably be changed to `temurin` once supported by `olafurpg/setup-scala`
# See https://github.com/actions/setup-java#supported-distributions
java-version: "adopt@1.${{ matrix.java }}"
- name: Compile and generate artifact files
shell: bash
run: sbt publishLocal
- name: Run tests
shell: bash
run: sbt -v +test
- name: Archive artifacts
if: matrix.os == 'ubuntu-latest' && matrix.java == 11
uses: actions/upload-artifact@v2
with:
path: |
build.sbt
project/build.properties
project/plugins.sbt
target/scala-*/silver_*-SNAPSHOT.jar
target/scala-*/silver_*-SNAPSHOT-tests.jar
target/scala-*/silver_*-SNAPSHOT-tests-sources.jar