Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99ee631

Browse files
authored
Merge pull request #1 from ArcadeData/setup-gh-actions
build support
2 parents 4fde186 + 99391e0 commit 99ee631

14 files changed

Lines changed: 173 additions & 70 deletions

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: '04:00'
8+
open-pull-requests-limit: 20
9+
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: weekly
14+
time: '05:00'
15+
open-pull-requests-limit: 10
16+
17+
- package-ecosystem: "docker"
18+
directory: "/package/src/main/docker/"
19+
schedule:
20+
interval: weekly
21+
time: '06:00'
22+
open-pull-requests-limit: 10

.github/workflows/mvn-test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Java CI - test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: xembly/workflow-manager@v1
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Github Actions, you do not need to create your own token
16+
run: clean, cancel # Optional, Default: clean
17+
verbose: true # Optional, Default: false
18+
- uses: actions/[email protected]
19+
- uses: actions/setup-python@v2
20+
- uses: pre-commit/[email protected]
21+
22+
- uses: actions/[email protected]
23+
with:
24+
path: ~/.m2/repository
25+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: |
27+
${{ runner.os }}-maven-
28+
29+
- name: Set up JDK 11
30+
uses: actions/setup-java@v2
31+
with:
32+
distribution: "adopt"
33+
java-version: 11
34+
35+
- name: Test
36+
run: mvn verify -PnoServerTest --batch-mode --quiet --errors --fail-at-end --show-version --file pom.xml
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.2/apache-maven-3.8.2-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: fix-byte-order-marker
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: mixed-line-ending
9+
- id: detect-aws-credentials
10+
args:
11+
- --allow-missing-credentials
12+
- id: detect-private-key
13+
- id: check-case-conflict
14+
- id: check-yaml
15+
args:
16+
- --allow-multiple-documents
17+
- id: check-json
18+
- id: check-xml
19+
- repo: https://github.com/pre-commit/mirrors-prettier
20+
rev: v2.3.2
21+
hooks:
22+
- id: prettier
23+
types: [ java ]
24+
additional_dependencies:
25+
26+
27+
args:
28+
- --write
29+
- --list-different
30+
- --ignore-unknown
31+
- --plugin=prettier-plugin-java

.prettierrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Prettier configuration
2+
overrides:
3+
- files:
4+
- "**/*.java"
5+
options:
6+
printWidth: 160
7+
tabWidth: 4
8+
useTabs: false
9+
trailingComma: none
10+
requirePragma: true

engine/src/main/java/com/arcadedb/query/QueryEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ interface QueryEngineFactory {
4242
ResultSet command(String query, Map<String, Object> parameters);
4343

4444
ResultSet command(String query, Object... parameters);
45-
}
45+
}

engine/src/main/java/com/arcadedb/query/QueryEngineManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ public QueryEngine create(final String language, DatabaseInternal database) {
5151
throw new IllegalArgumentException("Query engine '" + language + "' was not found");
5252
return impl.create(database);
5353
}
54-
}
54+
}

engine/src/main/java/com/arcadedb/query/cypher/CypherQueryEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ public ResultSet command(final String query, final Object... parameters) {
103103
map.put((String) parameters[i], parameters[i + 1]);
104104
return command(query, map);
105105
}
106-
}
106+
}

engine/src/main/java/com/arcadedb/query/gremlin/GremlinQueryEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ public ResultSet command(final String query, final Object... parameters) {
103103
map.put((String) parameters[i], parameters[i + 1]);
104104
return command(query, map);
105105
}
106-
}
106+
}

engine/src/main/java/com/arcadedb/query/mongo/MongoQueryEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ public ResultSet command(final String query, final Map<String, Object> parameter
9595
public ResultSet command(String query, Object... parameters) {
9696
return null;
9797
}
98-
}
98+
}

0 commit comments

Comments
 (0)