3838 - ' script/**'
3939 - ' material/**'
4040
41+ concurrency :
42+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
43+ cancel-in-progress : true
44+
4145jobs :
4246 backend-build :
4347 runs-on : ubuntu-latest
4650 - uses : ./script/ci/github-actions/setup-deps
4751
4852 - name : Build with Maven
49- run : mvnd clean -B package -Prelease -Dmaven.test.skip=false --file pom.xml
53+ run : mvnd clean -B package -pl '!hertzbeat-e2e' - Prelease -Dmaven.test.skip=false --file pom.xml
5054
5155 - name : Upload coverage reports to Codecov
5256 uses : codecov/codecov-action@v4.0.1
5559 fail_ci_if_error : false
5660 verbose : true
5761
62+ - name : Upload backend distribution
63+ uses : actions/upload-artifact@v4
64+ with :
65+ name : backend-dist-${{ github.run_id }}
66+ path : dist/
67+ retention-days : 1
68+ compression-level : 0
69+
70+ backend-maven-e2e :
71+ runs-on : ubuntu-latest
72+ steps :
73+ - uses : actions/checkout@v4
74+ - uses : ./script/ci/github-actions/setup-deps
75+
76+ - name : Build backend Maven E2E modules
77+ run : |
78+ mvnd clean -B package \
79+ -pl hertzbeat-e2e/hertzbeat-collector-common-e2e,hertzbeat-e2e/hertzbeat-collector-kafka-e2e,hertzbeat-e2e/hertzbeat-collector-basic-e2e,hertzbeat-e2e/hertzbeat-collector-mysql-r2dbc-e2e,hertzbeat-e2e/hertzbeat-log-e2e \
80+ -am \
81+ -Dmaven.test.skip=false \
82+ --file pom.xml
83+
84+ - name : Upload Maven E2E coverage reports to Codecov
85+ uses : codecov/codecov-action@v4.0.1
86+ with :
87+ token : ${{ secrets.CODECOV_TOKEN }}
88+ fail_ci_if_error : false
89+ verbose : true
90+
91+ backend-image-e2e :
92+ needs : backend-build
93+ runs-on : ubuntu-latest
94+ steps :
95+ - uses : actions/checkout@v4
96+
97+ - name : Download backend distribution
98+ uses : actions/download-artifact@v4
99+ with :
100+ name : backend-dist-${{ github.run_id }}
101+ path : dist/
102+
58103 - name : Build Image
59104 uses : docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294
60105 with :
@@ -65,12 +110,9 @@ jobs:
65110
66111 - name : Run E2E
67112 run : |
68- sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
69- sudo chmod u+x /usr/local/bin/docker-compose
70-
71113 cd e2e
72- sudo docker- compose version
73- sudo docker- compose up --exit-code-from testing --remove-orphans
114+ docker compose version
115+ docker compose up --exit-code-from testing --remove-orphans
74116
75117 # upload application logs
76118 - name : Upload logs & API test reports
81123 path : |
82124 e2e/logs/
83125 e2e/report/
84-
0 commit comments