Skip to content

Commit 2f18e34

Browse files
wep21kenji-miyaketier4-autoware-public-bot[bot]Daisuke Nishimatsu
authored
ci: sync template latest (autowarefoundation#16)
* ci: add sync files (#2) * ci: add sync files Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Update .github/sync-files.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * Update .github/sync-files.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * Update .github/sync-files.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * Update .github/sync-files.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * Update .github/sync-files.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (#3) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * ci: update workflow (#1) * ci: update ci config Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * chore: apply pre-commit Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * ci: update workflow Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Update .pre-commit-config.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: add empty repos (autowarefoundation#4) Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * chore: sync files (autowarefoundation#5) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#6) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Co-authored-by: wep21 <wep21@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#7) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#9) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#10) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Co-authored-by: wep21 <wep21@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#11) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> * chore: sync files (autowarefoundation#12) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> * chore: sync files (autowarefoundation#13) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> * chore: sync files (autowarefoundation#15) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> * chore: sync files (autowarefoundation#16) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Co-authored-by: wep21 <wep21@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#17) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> * chore: sync files (autowarefoundation#18) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#19) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#20) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#21) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#22) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#23) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#24) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#25) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#27) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#28) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * Update sync-files.yaml Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#29) Signed-off-by: GitHub <noreply@github.com> Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * chore: sync files (autowarefoundation#30) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> * remove legacy ci Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp> * update isort Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp> --------- Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> Signed-off-by: GitHub <noreply@github.com> Signed-off-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: tier4-autoware-bot[bot] <98652886+tier4-autoware-bot[bot]@users.noreply.github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: tier4-autoware-public-bot[bot] <98652886+tier4-autoware-public-bot[bot]@users.noreply.github.com> Co-authored-by: wep21 <wep21@users.noreply.github.com> Co-authored-by: Daisuke Nishimatsu <border_goldenmarket@yahoo.co.jp>
1 parent cd1577c commit 2f18e34

26 files changed

+562
-162
lines changed

.clang-format

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
5+
AccessModifierOffset: -2
6+
AlignAfterOpenBracket: AlwaysBreak
7+
BraceWrapping:
8+
AfterClass: true
9+
AfterFunction: true
10+
AfterNamespace: true
11+
AfterStruct: true
12+
BreakBeforeBraces: Custom
13+
ColumnLimit: 100
14+
ConstructorInitializerIndentWidth: 0
15+
ContinuationIndentWidth: 2
16+
DerivePointerAlignment: false
17+
PointerAlignment: Middle
18+
ReflowComments: true
19+
IncludeCategories:
20+
# C++ system headers
21+
- Regex: <[a-z_]*>
22+
Priority: 6
23+
CaseSensitive: true
24+
# C system headers
25+
- Regex: <.*\.h>
26+
Priority: 5
27+
CaseSensitive: true
28+
# Boost headers
29+
- Regex: boost/.*
30+
Priority: 4
31+
CaseSensitive: true
32+
# Message headers
33+
- Regex: .*_msgs/.*
34+
Priority: 3
35+
CaseSensitive: true
36+
- Regex: .*_srvs/.*
37+
Priority: 3
38+
CaseSensitive: true
39+
# Other Package headers
40+
- Regex: <.*>
41+
Priority: 2
42+
CaseSensitive: true
43+
# Local package headers
44+
- Regex: '".*"'
45+
Priority: 1
46+
CaseSensitive: true

.github/dependabot.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 1
8+
labels:
9+
- bot
10+
- github-actions

.github/dependabot.yml

-6
This file was deleted.

.github/sync-files.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
- repository: autowarefoundation/autoware
2+
files:
3+
- source: .github/dependabot.yaml
4+
- source: .github/workflows/pre-commit.yaml
5+
- source: .github/workflows/pre-commit-optional.yaml
6+
- source: .github/workflows/semantic-pull-request.yaml
7+
- source: .github/workflows/spell-check-differential.yaml
8+
- source: .github/workflows/sync-files.yaml
9+
- source: .clang-format
10+
- source: .markdown-link-check.json
11+
- source: .markdownlint.yaml
12+
- source: .pre-commit-config-optional.yaml
13+
- source: .prettierignore
14+
- source: .prettierrc.yaml
15+
- source: .yamllint.yaml
16+
- source: CPPLINT.cfg
17+
- source: setup.cfg
18+
19+
- repository: autowarefoundation/autoware_common
20+
files:
21+
- source: .github/workflows/build-and-test.yaml
22+
- source: .github/workflows/build-and-test-differential.yaml
23+
- source: .github/workflows/cancel-previous-workflows.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: build-and-test-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-and-test-differential:
8+
runs-on: ubuntu-latest
9+
container: ${{ matrix.container }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
rosdistro:
14+
- humble
15+
include:
16+
- rosdistro: humble
17+
container: ros:humble
18+
build-depends-repos: build_depends.repos
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Remove exec_depend
26+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
27+
28+
- name: Get modified packages
29+
id: get-modified-packages
30+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
31+
32+
- name: Build
33+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
34+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
35+
with:
36+
rosdistro: ${{ matrix.rosdistro }}
37+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
38+
build-depends-repos: ${{ matrix.build-depends-repos }}
39+
40+
- name: Test
41+
id: test
42+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
43+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
44+
with:
45+
rosdistro: ${{ matrix.rosdistro }}
46+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
47+
build-depends-repos: ${{ matrix.build-depends-repos }}
48+
49+
- name: Upload coverage to CodeCov
50+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
51+
uses: codecov/codecov-action@v3
52+
with:
53+
files: ${{ steps.test.outputs.coverage-report-files }}
54+
fail_ci_if_error: false
55+
verbose: true
56+
flags: differential
57+
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@v35
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

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

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: build-and-test
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-test:
11+
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12+
runs-on: ubuntu-latest
13+
container: ${{ matrix.container }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
rosdistro:
18+
- humble
19+
include:
20+
- rosdistro: humble
21+
container: ros:humble
22+
build-depends-repos: build_depends.repos
23+
steps:
24+
- name: Check out repository
25+
uses: actions/checkout@v3
26+
27+
- name: Remove exec_depend
28+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
29+
30+
- name: Get self packages
31+
id: get-self-packages
32+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
33+
34+
- name: Build
35+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
36+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
37+
with:
38+
rosdistro: ${{ matrix.rosdistro }}
39+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
40+
build-depends-repos: ${{ matrix.build-depends-repos }}
41+
42+
- name: Test
43+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
44+
id: test
45+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
46+
with:
47+
rosdistro: ${{ matrix.rosdistro }}
48+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
49+
build-depends-repos: ${{ matrix.build-depends-repos }}
50+
51+
- name: Upload coverage to CodeCov
52+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
53+
uses: codecov/codecov-action@v3
54+
with:
55+
files: ${{ steps.test.outputs.coverage-report-files }}
56+
fail_ci_if_error: false
57+
verbose: true
58+
flags: total

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

-66
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: cancel-previous-workflows
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
cancel-previous-workflows:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Cancel previous runs
11+
uses: styfle/cancel-workflow-action@0.11.0
12+
with:
13+
workflow_id: all
14+
all_but_latest: true

.github/workflows/codeql-analysis.yml

-69
This file was deleted.

0 commit comments

Comments
 (0)