forked from tier4/awsim_sensor_kit_launch
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0f81102
commit acb0958
Showing
28 changed files
with
494 additions
and
82 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
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
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
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval | ||
schedule: | ||
interval: daily | ||
interval: monthly | ||
open-pull-requests-limit: 1 | ||
labels: | ||
- bot | ||
- github-actions | ||
- tag:bot | ||
- type:github-actions |
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,11 @@ | ||
## Description | ||
|
||
## How was this PR tested? | ||
|
||
## Notes for reviewers | ||
|
||
None. | ||
|
||
## Effects on system behavior | ||
|
||
None. |
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
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 |
---|---|---|
|
@@ -2,32 +2,44 @@ name: build-and-test-differential | |
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
|
||
jobs: | ||
make-sure-label-is-present: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1 | ||
with: | ||
label: tag:run-build-and-test-differential | ||
|
||
build-and-test-differential: | ||
needs: make-sure-label-is-present | ||
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }} | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rosdistro: | ||
- galactic | ||
- humble | ||
include: | ||
- rosdistro: galactic | ||
container: ros:galactic | ||
build-depends-repos: build_depends.repos | ||
- rosdistro: humble | ||
container: ros:humble | ||
build-depends-repos: build_depends.repos | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
- name: Set PR fetch depth | ||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Checkout PR branch and all PR commits | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | ||
|
||
- name: Show disk space before the tasks | ||
run: df -h | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
@@ -55,35 +67,12 @@ jobs: | |
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.test.outputs.coverage-report-files != '' }} | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ${{ steps.test.outputs.coverage-report-files }} | ||
fail_ci_if_error: false | ||
verbose: true | ||
flags: differential | ||
|
||
clang-tidy-differential: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
needs: build-and-test-differential | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1 | ||
|
||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1 | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy | ||
build-depends-repos: build_depends.repos | ||
- name: Show disk space after the tasks | ||
run: df -h |
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
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,18 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: cancel-previous-workflows | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
cancel-previous-workflows: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
workflow_id: all | ||
all_but_latest: 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,41 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: check-build-depends | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- build_depends*.repos | ||
|
||
jobs: | ||
check-build-depends: | ||
runs-on: ubuntu-22.04 | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rosdistro: | ||
- humble | ||
include: | ||
- rosdistro: humble | ||
container: ros:humble | ||
build-depends-repos: build_depends.repos | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1 | ||
|
||
- name: Build | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@v1 | ||
with: | ||
rosdistro: ${{ matrix.rosdistro }} | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: ${{ matrix.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,66 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: clang-tidy-pr-comments-manually | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
workflow_run_id_or_url: | ||
description: The target workflow run ID or URL of the build-and-test-differential workflow | ||
required: true | ||
jobs: | ||
clang-tidy-pr-comments-manually: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download analysis results | ||
run: | | ||
workflow_run_id=$(echo "${{ inputs.workflow_run_id_or_url }}" | sed -e "s|.*runs/||" -e "s|/jobs.*||") | ||
gh run download "$workflow_run_id" -D /tmp || true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check if the fixes.yaml file exists | ||
id: check-fixes-yaml-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1 | ||
with: | ||
files: /tmp/clang-tidy-result/fixes.yaml | ||
|
||
- name: Set variables | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
id: set-variables | ||
run: | | ||
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT | ||
- name: Check out PR head | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ steps.set-variables.outputs.pr-head-repo }} | ||
ref: ${{ steps.set-variables.outputs.pr-head-ref }} | ||
persist-credentials: false | ||
|
||
- name: Replace paths in fixes.yaml | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml | ||
cat /tmp/clang-tidy-result/fixes.yaml | ||
- name: Copy fixes.yaml to access from Docker Container Action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml | ||
- name: Run clang-tidy-pr-comments action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: platisd/clang-tidy-pr-comments@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
clang_tidy_fixes: fixes.yaml | ||
pull_request_id: ${{ steps.set-variables.outputs.pr-id }} |
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,67 @@ | ||
# This file is automatically synced from: | ||
# https://github.com/autowarefoundation/sync-file-templates | ||
# To make changes, update the source repository and follow the guidelines in its README. | ||
|
||
name: clang-tidy-pr-comments | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- build-and-test-differential | ||
types: | ||
- completed | ||
|
||
jobs: | ||
clang-tidy-pr-comments: | ||
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download analysis results | ||
run: | | ||
gh run download ${{ github.event.workflow_run.id }} -D /tmp || true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check if the fixes.yaml file exists | ||
id: check-fixes-yaml-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1 | ||
with: | ||
files: /tmp/clang-tidy-result/fixes.yaml | ||
|
||
- name: Set variables | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
id: set-variables | ||
run: | | ||
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT | ||
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT | ||
- name: Check out PR head | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ steps.set-variables.outputs.pr-head-repo }} | ||
ref: ${{ steps.set-variables.outputs.pr-head-ref }} | ||
persist-credentials: false | ||
|
||
- name: Replace paths in fixes.yaml | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml | ||
cat /tmp/clang-tidy-result/fixes.yaml | ||
- name: Copy fixes.yaml to access from Docker Container Action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
run: | | ||
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml | ||
- name: Run clang-tidy-pr-comments action | ||
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }} | ||
uses: platisd/clang-tidy-pr-comments@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
clang_tidy_fixes: fixes.yaml | ||
pull_request_id: ${{ steps.set-variables.outputs.pr-id }} |
Oops, something went wrong.