1+ # ###############################################################################
2+ # Licensed to the Apache Software Foundation (ASF) under one
3+ # or more contributor license agreements. See the NOTICE file
4+ # distributed with this work for additional information
5+ # regarding copyright ownership. The ASF licenses this file
6+ # to you under the Apache License, Version 2.0 (the
7+ # "License"); you may not use this file except in compliance
8+ # with the License. You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing, software
13+ # distributed under the License is distributed on an "AS IS" BASIS,
14+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ # See the License for the specific language governing permissions and
16+ # limitations under the License.
17+ # ###############################################################################
18+ name : Daily CI ON JDK 8
19+ on :
20+ schedule :
21+ # Run at 12:00 daily.
22+ - cron : " 0 12 * * *"
23+ concurrency :
24+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
25+ cancel-in-progress : true
26+
27+ jobs :
28+ build-on-jdk8 :
29+ runs-on : self-hosted
30+ strategy :
31+ fail-fast : false
32+ matrix :
33+ module : [ core, flink ]
34+ steps :
35+ - name : Checkout code
36+ uses : actions/checkout@v2
37+ - name : Set up JDK 8
38+ uses : actions/setup-java@v4
39+ with :
40+ java-version : ' 8'
41+ distribution : ' temurin'
42+ - name : Build
43+ run : |
44+ mvn -T 1C -B clean install -DskipTests -Pjava8-target
45+ - name : Test
46+ timeout-minutes : 60
47+ run : |
48+ TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }})
49+ echo "github ref: ${{ github.ref }}"
50+ echo "Start testing modules: $TEST_MODULES"
51+ mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties -Pjava8-target
52+ env :
53+ MAVEN_OPTS : -Xmx4096m
54+ ARTIFACTS_OSS_ENDPOINT : ${{ secrets.ARTIFACTS_OSS_ENDPOINT }}
55+ ARTIFACTS_OSS_REGION : ${{ secrets.ARTIFACTS_OSS_REGION }}
56+ ARTIFACTS_OSS_BUCKET : ${{ secrets.ARTIFACTS_OSS_BUCKET }}
57+ ARTIFACTS_OSS_ACCESS_KEY : ${{ secrets.ARTIFACTS_OSS_ACCESS_KEY }}
58+ ARTIFACTS_OSS_SECRET_KEY : ${{ secrets.ARTIFACTS_OSS_SECRET_KEY }}
59+ ARTIFACTS_OSS_STS_ENDPOINT : ${{ secrets.ARTIFACTS_OSS_STS_ENDPOINT }}
60+ ARTIFACTS_OSS_ROLE_ARN : ${{ secrets.ARTIFACTS_OSS_ROLE_ARN }}
61+ - name : Upload build logs
62+ uses : actions/upload-artifact@v4
63+ if : ${{ failure() }}
64+ with :
65+ name : logs-test-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }}
66+ path : ${{ runner.temp }}/fluss-logs/*
67+ - name : Upload JaCoCo coverage report
68+ uses : actions/upload-artifact@v4
69+ if : ${{ success() && github.ref == 'refs/heads/main' }}
70+ with :
71+ name : jacoco-report-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }}
72+ path : ${{ github.workspace }}/fluss-test-coverage/target/site/jacoco-aggregate/*
0 commit comments