Skip to content

Commit 9fd7a59

Browse files
authored
ci: update build and test workflow (#358)
Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
1 parent fe9d05b commit 9fd7a59

5 files changed

+51
-28
lines changed

.github/workflows/build-and-test-differential-self-hosted.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@ jobs:
3737
id: get-modified-packages
3838
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal
3939

40-
- name: Build and test
40+
- name: Build
4141
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
42-
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
42+
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal
43+
with:
44+
rosdistro: galactic
45+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
46+
build-depends-repos: build_depends.repos
47+
48+
- name: Test
49+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
50+
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal
4351
with:
4452
rosdistro: galactic
4553
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}

.github/workflows/build-and-test-differential.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,28 @@ jobs:
2828
id: get-modified-packages
2929
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal
3030

31-
- name: Build and test
31+
- name: Build
3232
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
33-
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
33+
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal
3434
with:
3535
rosdistro: galactic
3636
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
3737
build-depends-repos: build_depends.repos
3838

39-
- name: Check the existence of coverage files
40-
id: check-file-existence
41-
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal
39+
- name: Test
40+
id: test
41+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
42+
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal
4243
with:
43-
files: |
44-
lcov/total_coverage.info
45-
coveragepy/.coverage
46-
condition: or
44+
rosdistro: galactic
45+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
46+
build-depends-repos: build_depends.repos
4747

4848
- name: Upload coverage to CodeCov
49-
if: ${{ steps.check-file-existence.outputs.exists == 'true' }}
49+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
5050
uses: codecov/codecov-action@v2
5151
with:
52-
files: lcov/total_coverage.info,coveragepy/.coverage
52+
files: ${{ steps.test.outputs.coverage-report-files }}
5353
fail_ci_if_error: false
5454
verbose: true
5555

.github/workflows/build-and-test-self-hosted.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ jobs:
2525
id: get-self-packages
2626
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal
2727

28-
- name: Build and test
28+
- name: Build
2929
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
30-
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
30+
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal
31+
with:
32+
rosdistro: galactic
33+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
34+
build-depends-repos: build_depends.repos
35+
36+
- name: Test
37+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
38+
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal
3139
with:
3240
rosdistro: galactic
3341
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}

.github/workflows/build-and-test.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ jobs:
2727
id: get-self-packages
2828
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal
2929

30-
- name: Build and test
30+
- name: Build
3131
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
32-
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
32+
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal
3333
with:
3434
rosdistro: galactic
3535
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
3636
build-depends-repos: build_depends.repos
3737

38-
- name: Check the existence of coverage files
39-
id: check-file-existence
40-
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal
38+
- name: Test
39+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
40+
id: test
41+
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal
4142
with:
42-
files: |
43-
lcov/total_coverage.info
44-
coveragepy/.coverage
45-
condition: or
43+
rosdistro: galactic
44+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
45+
build-depends-repos: build_depends.repos
4646

4747
- name: Upload coverage to CodeCov
48-
if: ${{ steps.check-file-existence.outputs.exists == 'true' }}
48+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
4949
uses: codecov/codecov-action@v2
5050
with:
51-
files: lcov/total_coverage.info,coveragepy/.coverage
51+
files: ${{ steps.test.outputs.coverage-report-files }}
5252
fail_ci_if_error: false
5353
verbose: true

.github/workflows/check-build-depends.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,15 @@ jobs:
2828
id: get-self-packages
2929
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal
3030

31-
- name: Build and test
32-
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
31+
- name: Build
32+
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal
33+
with:
34+
rosdistro: galactic
35+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
36+
build-depends-repos: build_depends.repos
37+
38+
- name: Test
39+
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal
3340
with:
3441
rosdistro: galactic
3542
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}

0 commit comments

Comments
 (0)