Skip to content

Commit a0f38d9

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 c2f6a89 commit a0f38d9

4 files changed

+42
-58
lines changed

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

+25-38
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
21-
uses: actions/checkout@v3
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
36+
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@v3
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

+6-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ jobs:
2222
build-depends-repos: build_depends.repos
2323
steps:
2424
- name: Check out repository
25-
uses: actions/checkout@v3
26-
27-
- name: Free disk space (Ubuntu)
28-
uses: jlumbroso/free-disk-space@v1.3.1
25+
uses: actions/checkout@v4
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

.pre-commit-config-optional.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/tcort/markdown-link-check
3-
rev: v3.11.2
3+
rev: v3.12.2
44
hooks:
55
- id: markdown-link-check
66
args: [--quiet, --config=.markdown-link-check.json]

.pre-commit-config.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v4.6.0
77
hooks:
88
- id: check-json
99
- id: check-merge-conflict
@@ -18,18 +18,18 @@ repos:
1818
args: [--markdown-linebreak-ext=md]
1919

2020
- repo: https://github.com/igorshubovych/markdownlint-cli
21-
rev: v0.33.0
21+
rev: v0.41.0
2222
hooks:
2323
- id: markdownlint
2424
args: [-c, .markdownlint.yaml, --fix]
2525

2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: v3.0.0-alpha.6
27+
rev: v4.0.0-alpha.8
2828
hooks:
2929
- id: prettier
3030

3131
- repo: https://github.com/adrienverge/yamllint
32-
rev: v1.30.0
32+
rev: v1.35.1
3333
hooks:
3434
- id: yamllint
3535

@@ -44,29 +44,29 @@ repos:
4444
- id: sort-package-xml
4545

4646
- repo: https://github.com/shellcheck-py/shellcheck-py
47-
rev: v0.9.0.2
47+
rev: v0.10.0.1
4848
hooks:
4949
- id: shellcheck
5050

5151
- repo: https://github.com/scop/pre-commit-shfmt
52-
rev: v3.6.0-2
52+
rev: v3.8.0-1
5353
hooks:
5454
- id: shfmt
5555
args: [-w, -s, -i=4]
5656

5757
- repo: https://github.com/pycqa/isort
58-
rev: 5.12.0
58+
rev: 5.13.2
5959
hooks:
6060
- id: isort
6161

6262
- repo: https://github.com/psf/black
63-
rev: 23.3.0
63+
rev: 24.4.2
6464
hooks:
6565
- id: black
6666
args: [--line-length=100]
6767

6868
- repo: https://github.com/pre-commit/mirrors-clang-format
69-
rev: v16.0.0
69+
rev: v18.1.6
7070
hooks:
7171
- id: clang-format
7272
types_or: [c++, c, cuda]
@@ -79,7 +79,7 @@ repos:
7979
exclude: .cu
8080

8181
- repo: https://github.com/python-jsonschema/check-jsonschema
82-
rev: 0.23.2
82+
rev: 0.28.5
8383
hooks:
8484
- id: check-metaschema
8585
files: ^.+/schema/.*schema\.json$

0 commit comments

Comments
 (0)