Skip to content

Commit 6626803

Browse files
github-actionsgithub-actions[bot]
github-actions
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 819111f commit 6626803

4 files changed

+31
-46
lines changed

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

+24-37
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@ name: build-and-test-differential
22

33
on:
44
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
510

611
jobs:
12+
make-sure-label-is-present:
13+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
14+
with:
15+
label: tag:run-build-and-test-differential
16+
717
build-and-test-differential:
18+
needs: make-sure-label-is-present
19+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
820
runs-on: ubuntu-latest
921
container: ${{ matrix.container }}
1022
strategy:
@@ -17,10 +29,17 @@ jobs:
1729
container: ros:humble
1830
build-depends-repos: build_depends.repos
1931
steps:
20-
- name: Check out repository
32+
- name: Set PR fetch depth
33+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
34+
35+
- name: Checkout PR branch and all PR commits
2136
uses: actions/checkout@v4
2237
with:
23-
fetch-depth: 0
38+
ref: ${{ github.event.pull_request.head.sha }}
39+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
40+
41+
- name: Show disk space before the tasks
42+
run: df -h
2443

2544
- name: Remove exec_depend
2645
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -48,44 +67,12 @@ jobs:
4867

4968
- name: Upload coverage to CodeCov
5069
if: ${{ steps.test.outputs.coverage-report-files != '' }}
51-
uses: codecov/codecov-action@v3
70+
uses: codecov/codecov-action@v4
5271
with:
5372
files: ${{ steps.test.outputs.coverage-report-files }}
5473
fail_ci_if_error: false
5574
verbose: true
5675
flags: differential
5776

58-
clang-tidy-differential:
59-
runs-on: ubuntu-latest
60-
container: ros:humble
61-
needs: build-and-test-differential
62-
steps:
63-
- name: Check out repository
64-
uses: actions/checkout@v4
65-
with:
66-
fetch-depth: 0
67-
68-
- name: Remove exec_depend
69-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
70-
71-
- name: Get modified packages
72-
id: get-modified-packages
73-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
74-
75-
- name: Get modified files
76-
id: get-modified-files
77-
uses: tj-actions/changed-files@v42
78-
with:
79-
files: |
80-
**/*.cpp
81-
**/*.hpp
82-
83-
- name: Run clang-tidy
84-
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
85-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
86-
with:
87-
rosdistro: humble
88-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
89-
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
90-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
91-
build-depends-repos: build_depends.repos
77+
- name: Show disk space after the tasks
78+
run: df -h

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

+5-8
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ jobs:
2323
steps:
2424
- name: Check out repository
2525
uses: actions/checkout@v4
26-
27-
- name: Free disk space (Ubuntu)
28-
uses: jlumbroso/[email protected]
2926
with:
30-
tool-cache: false
31-
dotnet: false
32-
swap-storage: false
33-
large-packages: false
27+
fetch-depth: 1
28+
29+
- name: Show disk space before the tasks
30+
run: df -h
3431

3532
- name: Remove exec_depend
3633
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -58,7 +55,7 @@ jobs:
5855

5956
- name: Upload coverage to CodeCov
6057
if: ${{ steps.test.outputs.coverage-report-files != '' }}
61-
uses: codecov/codecov-action@v3
58+
uses: codecov/codecov-action@v4
6259
with:
6360
files: ${{ steps.test.outputs.coverage-report-files }}
6461
fail_ci_if_error: false

.github/workflows/cancel-previous-workflows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Cancel previous runs
11-
uses: styfle/[email protected].0
11+
uses: styfle/[email protected].1
1212
with:
1313
workflow_id: all
1414
all_but_latest: true

.markdownlint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ MD029:
77
style: ordered
88
MD033: false
99
MD041: false
10+
MD045: false
1011
MD046: false
1112
MD049: false

0 commit comments

Comments
 (0)