-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.86 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
name: Box CI Server
on:
[push, pull_request]
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
skip_after_successful_duplicate: 'true'
paths_ignore: '["**/README.md", "**/docs/**"]'
test:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
env:
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms4G -Xmx4G -Xss10M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms4G -Xmx4G -Xss10M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
NODE_OPTIONS: --max-old-space-size=2048
SBT_NATIVE_CLIENT: true
DEV_SERVER: true
RUNNING_TEST: true
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Find tag
run: export BUILD_CODE=`git describe --tags`
- name: Setup testspace
uses: testspace-com/setup-testspace@v1
with:
domain: Insubric
- name: Setup Scala
uses: coursier/setup-action@v1
with:
jvm: adoptium:1.17
- name: Run tests server
run: |
export PATH=./node_modules/.bin:$PATH
sbt codegen/clean
sbt server/clean
sbt client/clean
sbt server/slickTest
sbt -J-Xmx4G -J-XX:MaxMetaspaceSize=1G -J-Xss10m server/test
- name: Push server result to testspace
run: testspace server/target/test-reports/*.xml
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}