-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (47 loc) · 1.34 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Unit Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Run TinkerGraph tests
run: sbt "project tinkergraph" test
- name: Run OverflowDB tests
run: sbt "project overflowdb" test
- name: Run Neo4j tests
run: sbt "project neo4j" test
# - name: Run TigerGraph tests
# run: |
# curl https://dl.tigergraph.com/enterprise-edition/gsql_client/tigergraph-3.9.3-1-gsql_client.jar \
# --output gsql_client.jar &&
# export GSQL_HOME=`pwd`/gsql_client.jar
# sbt "project tigergraph" test
formatting:
name: Code Formatting Check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Check formatting
run: sbt scalafmtCheck
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt'"
if: ${{ failure() }}