Skip to content

Commit d7ec2bf

Browse files
authored
Merge pull request #71 from Lowcoder-Community/feat/ci-cd
CI/CD changes
2 parents 603c499 + 38862c0 commit d7ec2bf

File tree

5 files changed

+56
-2
lines changed

5 files changed

+56
-2
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "maven"
6+
directory: "/server/api-service"
7+
schedule:
8+
interval: "weekly"
9+
- package-ecosystem: "npm"
10+
directory: "/server/node-service"
11+
schedule:
12+
interval: "weekly"
13+
- package-ecosystem: "npm"
14+
directory: "/client"
15+
schedule:
16+
interval: "weekly"
17+
- package-ecosystem: "docker"
18+
directory: "/deploy/docker"
19+
schedule:
20+
interval: "weekly"

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "develop" ]
16+
branches: [ "main" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "develop" ]
19+
branches: [ "main" ]
2020
schedule:
2121
- cron: '20 15 * * 5'
2222

.github/workflows/sonarcloud.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
sonarcloud:
10+
name: SonarCloud
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Setup Java JDK
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 17
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
20+
- name: Build Java
21+
run: |
22+
mvn clean compile -DskipTests -f ./server/api-service/pom.xml
23+
- name: SonarCloud Scan
24+
uses: SonarSource/sonarcloud-github-action@master
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
27+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

client/netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[[redirects]]
2+
from = "/*"
3+
to = "/"
4+
status = 200

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.projectKey=Lowcoder-Community_openblocks
2+
sonar.organization=lowcoder-community
3+
sonar.java.binaries=server/api-service/openblocks-domain/target,server/api-service/openblocks-infra/target,server/api-service/openblocks-sdk/target,server/api-service/openblocks-server/target,server/api-service/openblocks-plugins/clickHousePlugin/target,server/api-service/openblocks-plugins/elasticSearchPlugin/target,server/api-service/openblocks-plugins/googleSheetsPlugin/target,server/api-service/openblocks-plugins/graphqlPlugin/target,server/api-service/openblocks-plugins/mongoPlugin/target,server/api-service/openblocks-plugins/mssqlPlugin/target,server/api-service/openblocks-plugins/mysqlPlugin/target,server/api-service/openblocks-plugins/openblocksApiPlugin/target,server/api-service/openblocks-plugins/oraclePlugin/target,server/api-service/openblocks-plugins/postgresPlugin/target,server/api-service/openblocks-plugins/redisPlugin/target,server/api-service/openblocks-plugins/restApiPlugin/target,server/api-service/openblocks-plugins/smtpPlugin/target,server/api-service/openblocks-plugins/snowflakePlugin/target,server/api-service/openblocks-plugins/sqlBasedPlugin/target

0 commit comments

Comments
 (0)