forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync files (autowarefoundation#3)
Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com>
- Loading branch information
1 parent
4127c60
commit 13b903c
Showing
15 changed files
with
286 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: build-and-test-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test-differential: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Build | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Test | ||
id: test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.test.outputs.coverage-report-files != '' }} | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: ${{ steps.test.outputs.coverage-report-files }} | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
clang-tidy-differential: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
needs: build-and-test-differential | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/tier4/proposal/.clang-tidy | ||
build-depends-repos: build_depends.repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: build-and-test | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: 0 19 * * * # run at 4 AM JST | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }} | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal | ||
|
||
- name: Build | ||
if: ${{ steps.get-self-packages.outputs.self-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Test | ||
if: ${{ steps.get-self-packages.outputs.self-packages != '' }} | ||
id: test | ||
uses: autowarefoundation/autoware-github-actions/colcon-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.test.outputs.coverage-report-files != '' }} | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: ${{ steps.test.outputs.coverage-report-files }} | ||
fail_ci_if_error: false | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: check-build-depends | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- build_depends.repos | ||
|
||
jobs: | ||
check-build-depends: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal | ||
|
||
- name: Build | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: build_depends.repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pre-commit-optional | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit-optional: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@tier4/proposal | ||
with: | ||
pre-commit-config: .pre-commit-config-optional.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@tier4/proposal | ||
with: | ||
pre-commit-config: .pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: semantic-pull-request | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pull-request: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@tier4/proposal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: spell-check-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
spell-check-differential: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run spell-check | ||
uses: autowarefoundation/autoware-github-actions/spell-check@tier4/proposal | ||
with: | ||
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"aliveStatusCodes": [200, 206, 403], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^http://localhost" | ||
} | ||
], | ||
"retryOn429": true, | ||
"retryCount": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default: true | ||
MD013: false | ||
MD024: | ||
siblings_only: true | ||
MD033: false | ||
MD041: false | ||
MD046: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/tcort/markdown-link-check | ||
rev: v3.9.3 | ||
hooks: | ||
- id: markdown-link-check | ||
args: [--config=.markdown-link-check.json] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.param.yaml | ||
*.rviz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
printWidth: 100 | ||
tabWidth: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends: default | ||
|
||
ignore: | | ||
.clang-tidy | ||
*.param.yaml | ||
rules: | ||
braces: | ||
level: error | ||
max-spaces-inside: 1 # To format with Prettier | ||
comments: | ||
level: error | ||
min-spaces-from-content: 1 # To be compatible with C++ and Python | ||
document-start: | ||
level: error | ||
present: false # Don't need document start markers | ||
line-length: disable # Delegate to Prettier | ||
truthy: | ||
level: error | ||
check-keys: false # To allow 'on' of GitHub Actions | ||
quoted-strings: | ||
level: error | ||
required: only-when-needed # To keep consistent style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[flake8] | ||
# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_flake8/ament_flake8/configuration/ament_flake8.ini | ||
extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,CNL100,E203,E501,Q000 | ||
import-order-style = google | ||
max-line-length = 100 | ||
show-source = true | ||
statistics = true | ||
|
||
[isort] | ||
profile=black | ||
line_length=100 | ||
force_sort_within_sections=true | ||
force_single_line=true | ||
reverse_relative=true | ||
known_third_party=launch |