-
Notifications
You must be signed in to change notification settings - Fork 28
81 lines (68 loc) · 2.09 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
on: [push]
jobs:
vars:
runs-on: ubuntu-latest
outputs:
experimentalScalaVersions: ""
steps:
- name: dummy
run: echo dummy
build:
needs: vars
runs-on: ubuntu-latest
strategy:
max-parallel: 2
fail-fast: false
matrix:
scalaVersion: ["2.13.7", "2.13.8", "2.13.9", "2.13.10", "2.13.11"]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Compile
run: ./dev/make-all.sh -PscalaVersion=${{matrix.scalaVersion}}
- name: Pre-release on github
uses: "marvinpinto/action-automatic-releases@latest"
if: contains(github.ref_name, 'Release/')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{github.ref_name}}-${{matrix.scalaVersion}}"
title: "${{github.ref_name}}-${{matrix.scalaVersion}}"
prerelease: true
files: |
LICENSE
core/build/libs/*.jar
test:
needs: vars
runs-on: ubuntu-latest
#TODO: don't repeat yourself
strategy:
max-parallel: 2
fail-fast: false
matrix:
scalaVersion: ["2.13.7", "2.13.8", "2.13.9", "2.13.10", "2.13.11"]
continue-on-error: ${{ contains(needs.vars.outputs.experimentalScalaVersions, matrix.scalaVersion) }}
steps:
- name: debug vars
run: echo ${{ needs.vars.outputs.experimentalScalaVersions }}
- name: debug expression
run: echo ${{ job.continue-on-error }}
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# TODO: replica! how to remove?
- name: Test
run: ./dev/test.sh -PscalaVersion=${{matrix.scalaVersion}}
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: |
**/test-results/test/*.xml
check_name: |
Test Report (${{matrix.scalaVersion}})