-
Notifications
You must be signed in to change notification settings - Fork 0
169 lines (165 loc) · 5.94 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: Continuous Integration
on:
push:
branches: [ master, 1.x ]
pull_request:
branches: [ master, 1.x ]
jobs:
build-2_11:
runs-on: ubuntu-latest
environment:
name: CI
services:
pulsar:
image: apachepulsar/pulsar-standalone:2.8.4
ports:
- 6650:6650
- 8080:8080
activemq:
image: rmohr/activemq:latest
ports:
- 61616:61616
rv:
image: ghcr.io/jobial-io/rv:latest
ports:
- 7500:7500
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Set up environment
run: |
echo export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >>job_env
echo export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >>job_env
echo export AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} >>job_env
mkdir -p /var/tmp/rv/lib
. job_env
aws s3 sync s3://jobial-ci/rv/ /var/tmp/rv/
echo export TIBCO_RV_ROOT=/var/tmp/rv >>job_env
echo export LD_LIBRARY_PATH=/var/tmp/rv/lib >>job_env
- name: Run tests
run: |
. job_env
sbt ++2.11 compile "project scase-aws-test" proguard condense
#jar tf /home/runner/work/scase/scase/scase-aws-test/target/scala-2.13/proguard/scase-aws-test_2.13-*.jar
sbt ++2.11 test 2>&1 | grep -av 'RV: TIB/Rendezvous Error Not Handled by Process:' | grep -av '{ADV_CLASS='
[ ${PIPESTATUS[0]} == 0 ] || exit 1
- name: Upload results
run: |
. job_env
aws s3 sync ./ s3://jobial-ci/github/scase/master/ --exclude "*" --include "**/target/**"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true
build-2_12:
runs-on: ubuntu-latest
environment:
name: CI
services:
pulsar:
image: apachepulsar/pulsar-standalone:2.8.4
ports:
- 6650:6650
activemq:
image: rmohr/activemq:latest
ports:
- 61616:61616
rv:
image: ghcr.io/jobial-io/rv:latest
ports:
- 7500:7500
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Set up environment
run: |
echo export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >>job_env
echo export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >>job_env
echo export AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} >>job_env
mkdir -p /var/tmp/rv/lib
. job_env
aws s3 sync s3://jobial-ci/rv/ /var/tmp/rv/
echo export TIBCO_RV_ROOT=/var/tmp/rv >>job_env
echo export LD_LIBRARY_PATH=/var/tmp/rv/lib >>job_env
- name: Run tests
run: |
. job_env
sbt ++2.12 compile "project scase-aws-test" proguard condense
#jar tf /home/runner/work/scase/scase/scase-aws-test/target/scala-2.13/proguard/scase-aws-test_2.13-*.jar
sbt ++2.12 test 2>&1 | grep -av 'RV: TIB/Rendezvous Error Not Handled by Process:' | grep -av '{ADV_CLASS='
[ ${PIPESTATUS[0]} == 0 ] || exit 1
- name: Upload results
run: |
. job_env
aws s3 sync ./ s3://jobial-ci/github/scase/master/ --exclude "*" --include "**/target/**"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true
build-2_13:
runs-on: ubuntu-latest
environment:
name: CI
services:
pulsar:
image: apachepulsar/pulsar-standalone:2.8.4
ports:
- 6650:6650
activemq:
image: rmohr/activemq:latest
ports:
- 61616:61616
rv:
image: ghcr.io/jobial-io/rv:latest
ports:
- 7500:7500
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Set up environment
run: |
echo export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >>job_env
echo export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >>job_env
echo export AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} >>job_env
mkdir -p /var/tmp/rv/lib
. job_env
aws s3 sync s3://jobial-ci/rv/ /var/tmp/rv/
echo export TIBCO_RV_ROOT=/var/tmp/rv >>job_env
echo export LD_LIBRARY_PATH=/var/tmp/rv/lib >>job_env
- name: Run tests
run: |
. job_env
sbt ++2.13 compile "project scase-aws-test" proguard condense
#jar tf /home/runner/work/scase/scase/scase-aws-test/target/scala-2.13/proguard/scase-aws-test_2.13-*.jar
sbt ++2.13 coverage test coverageReport coverageAggregate 2>&1 | grep -av 'RV: TIB/Rendezvous Error Not Handled by Process:' | grep -av '{ADV_CLASS='
[ ${PIPESTATUS[0]} == 0 ] || exit 1
- name: Upload results
run: |
. job_env
aws s3 sync ./ s3://jobial-ci/github/scase/master/ --exclude "*" --include "**/target/**"
cat target/scala-2.*/scoverage-report/scoverage.xml | head -n 2 | grep statement-rate | sed 's/.*statement-rate="//' | sed 's/".*//'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true