Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/workflows/approve-label.yml

This file was deleted.

67 changes: 44 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ on:
branches:
- master
pull_request:
paths-ignore:
- 'chunjun-docker/**/*'
- 'chunjun-examples/**/*'
- 'chunjun-dev/**/*'
- '**/*.md'
- 'docs/**/*'
- 'website/**/*'
- '**/*.ftl'

permissions:
contents: read

concurrency:
group: backend-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -43,11 +38,9 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
Expand All @@ -63,22 +56,50 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check whether the PR needs a Maven build
id: scope
if: github.event_name == 'pull_request'
shell: bash
run: |
changed_files="$(mktemp)"
trap 'rm -f "$changed_files"' EXIT
git diff --name-only --no-renames -z HEAD^1 HEAD > "$changed_files"
while IFS= read -r -d '' path; do
case "$path" in
chunjun-docker/*|chunjun-examples/*|chunjun-dev/*|*.md|docs/*|website/*|*.ftl) ;;
*)
echo "maven=true" >> "$GITHUB_OUTPUT"
exit 0
;;
esac
done < "$changed_files"
echo "maven=false" >> "$GITHUB_OUTPUT"
- name: Set up JDK 8
uses: actions/setup-java@v3
if: steps.scope.outputs.maven != 'false'
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
cache: 'maven'
- name: add dependencies
- name: build project
run: |
./mvnw clean package -Dmaven.test.skip --no-snapshot-updates
- name: unit-test
run: |
./mvnw -T 1C clean compile test -DskipUT=false -DskipITCase=false --no-snapshot-updates
- name: integration-test
- name: Install the GBase JDBC driver
if: steps.scope.outputs.maven != 'false'
shell: bash
run: |
./mvnw -T 1C -B verify -DskipUT=true -DskipIT=false --no-snapshot-updates -pl chunjun-e2e -am
# This exact version is not in Maven Central. Use the original,
# immutable upstream artifact without adding binaries to the checkout.
jar="$RUNNER_TEMP/gbase-8.3.81.53.jar"
curl --fail --silent --show-error --location --retry 3 --max-time 60 \
'https://raw.githubusercontent.com/DTStack/chunjun/0adb82e4566d09ff547165f15ab7d3a6dd2966fc/jars/gbase-8.3.81.53.jar' \
--output "$jar"
echo "687687f0d0798deabfba2cccf3ab7e6808c76b0b4af2299044ab82a97deb69fa $jar" | sha256sum --check
./mvnw -B -N org.apache.maven.plugins:maven-install-plugin:3.1.4:install-file \
-DgroupId=com.esen.jdbc -DartifactId=gbase -Dversion=8.3.81.53 \
-Dpackaging=jar -Dfile="$jar" -DgeneratePom=true
- name: Verify the reactor
if: steps.scope.outputs.maven != 'false'
run: ./mvnw -B clean verify -Dspotless.check.skip=true --no-snapshot-updates
env:
MAVEN_OPTS: -Xmx2048m
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,34 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: Label-when-reviewed
on: pull_request_review
jobs:
name: Workflow lint

on:
pull_request:
paths:
- '.github/workflows/**'
push:
branches:
- master
paths:
- '.github/workflows/**'

label-when-reviewed:
name: "Label PRs when reviewed"
permissions:
contents: read

jobs:
actionlint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Do nothing. Only trigger corresponding workflow_run event"
run: echo
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.x'
cache: false
- name: Validate GitHub Actions workflows
# Legacy runtime warnings in docs-deploy.yml and label.yml are tracked separately.
run: >-
go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7
-ignore 'runner of "actions/(checkout@v3|setup-node@v3|labeler@v4)" action is too old'
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

Loading