forked from cashapp/misk
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (62 loc) · 1.72 KB
/
Test.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
name: Test
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
push:
branches:
- master
env:
ENVIRONMENT: TESTING
JVM_OPTS: -Xmx1024M
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=3 -Xmx4096m -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
TERM: dumb
jobs:
js:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [12]
cmd:
- sudo npm install -g @misk/cli && miskweb ci-build -e
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: ${{ matrix.cmd }}
jvm:
runs-on: ${{ matrix.os }}
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
strategy:
matrix:
os: [ubuntu-latest]
cmd:
- ./gradlew testShardHibernate -i --scan
- ./gradlew testShardNonHibernate -i --scan --parallel
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Configure JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11.0.3
- name: Test
run: ${{ matrix.cmd }}
- name: Publish Test Report
if: ${{ always() }}
uses: mikepenz/action-junit-report@v2
with:
check_name: Test Report - ${{ matrix.cmd }}
report_paths: '**/build/test-results/test/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}