From ff1ecb34f5eecab37c4f0dccfe54dd8ef6af9c1c Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 24 Nov 2024 00:04:25 +0000 Subject: [PATCH] chore: sync files Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .clang-format | 3 -- .github/dependabot.yaml | 4 +-- .../build-and-test-differential.yaml | 29 ++++++++++++++++--- .github/workflows/build-and-test.yaml | 17 +++++------ .../workflows/cancel-previous-workflows.yaml | 2 +- .github/workflows/pre-commit-optional.yaml | 4 +-- .github/workflows/pre-commit.yaml | 6 ++-- .../workflows/spell-check-differential.yaml | 4 +-- .github/workflows/sync-files.yaml | 8 ++--- .markdown-link-check.json | 6 +--- .markdownlint.yaml | 1 + .pre-commit-config-optional.yaml | 2 +- .prettierignore | 3 +- .yamllint.yaml | 9 ++---- 14 files changed, 54 insertions(+), 44 deletions(-) diff --git a/.clang-format b/.clang-format index 82c94e663..b41fae912 100644 --- a/.clang-format +++ b/.clang-format @@ -45,6 +45,3 @@ IncludeCategories: - Regex: '".*"' Priority: 1 CaseSensitive: true ---- -Language: Json -BasedOnStyle: llvm diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 3f3bf243f..0264c0353 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -6,5 +6,5 @@ updates: interval: daily open-pull-requests-limit: 1 labels: - - bot - - github-actions + - tag:bot + - type:github-actions diff --git a/.github/workflows/build-and-test-differential.yaml b/.github/workflows/build-and-test-differential.yaml index 625b62bdb..74242fead 100644 --- a/.github/workflows/build-and-test-differential.yaml +++ b/.github/workflows/build-and-test-differential.yaml @@ -2,9 +2,21 @@ 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: @@ -17,10 +29,17 @@ jobs: container: ros:humble build-depends-repos: build_depends.repos steps: - - name: Check out repository - uses: actions/checkout@v3 + - name: Set PR fetch depth + run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" + + - 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 @@ -51,7 +70,9 @@ jobs: uses: codecov/codecov-action@v4 with: files: ${{ steps.test.outputs.coverage-report-files }} - token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false verbose: true flags: differential + + - name: Show disk space after the tasks + run: df -h diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index b0b500dae..5a227b520 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -22,15 +22,12 @@ jobs: build-depends-repos: build_depends.repos steps: - name: Check out repository - uses: actions/checkout@v3 - - - name: Free disk space (Ubuntu) - uses: jlumbroso/free-disk-space@v1.2.0 + uses: actions/checkout@v4 with: - tool-cache: false - dotnet: false - swap-storage: false - large-packages: false + fetch-depth: 1 + + - name: Show disk space before the tasks + run: df -h - name: Remove exec_depend uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 @@ -61,7 +58,9 @@ jobs: uses: codecov/codecov-action@v4 with: files: ${{ steps.test.outputs.coverage-report-files }} - token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false verbose: true flags: total + + - name: Show disk space after the tasks + run: df -h diff --git a/.github/workflows/cancel-previous-workflows.yaml b/.github/workflows/cancel-previous-workflows.yaml index f9c29b81b..44983f7de 100644 --- a/.github/workflows/cancel-previous-workflows.yaml +++ b/.github/workflows/cancel-previous-workflows.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.1 with: workflow_id: all all_but_latest: true diff --git a/.github/workflows/pre-commit-optional.yaml b/.github/workflows/pre-commit-optional.yaml index e754ecab2..12f536c55 100644 --- a/.github/workflows/pre-commit-optional.yaml +++ b/.github/workflows/pre-commit-optional.yaml @@ -5,10 +5,10 @@ on: jobs: pre-commit-optional: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index b231dbda8..4d005e849 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -6,17 +6,17 @@ on: jobs: pre-commit: if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Generate token id: generate-token - uses: tibdex/github-app-token@v1 + uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.PRIVATE_KEY }} - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/spell-check-differential.yaml b/.github/workflows/spell-check-differential.yaml index eb18ccdba..f030a4525 100644 --- a/.github/workflows/spell-check-differential.yaml +++ b/.github/workflows/spell-check-differential.yaml @@ -5,10 +5,10 @@ on: jobs: spell-check-differential: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run spell-check uses: autowarefoundation/autoware-github-actions/spell-check@v1 diff --git a/.github/workflows/sync-files.yaml b/.github/workflows/sync-files.yaml index b9dc5907a..0cffbcd2a 100644 --- a/.github/workflows/sync-files.yaml +++ b/.github/workflows/sync-files.yaml @@ -14,11 +14,11 @@ jobs: sync-files: needs: check-secret if: ${{ needs.check-secret.outputs.set == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Generate token id: generate-token - uses: tibdex/github-app-token@v1 + uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.PRIVATE_KEY }} @@ -28,6 +28,6 @@ jobs: with: token: ${{ steps.generate-token.outputs.token }} pr-labels: | - bot - sync-files + tag:bot + tag:sync-files auto-merge-method: squash diff --git a/.markdown-link-check.json b/.markdown-link-check.json index 03b977748..c71a3e425 100644 --- a/.markdown-link-check.json +++ b/.markdown-link-check.json @@ -1,9 +1,5 @@ { - "aliveStatusCodes": [ - 200, - 206, - 403 - ], + "aliveStatusCodes": [200, 206, 403], "ignorePatterns": [ { "pattern": "^http://localhost" diff --git a/.markdownlint.yaml b/.markdownlint.yaml index babaaa1f1..7b7359fe0 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -7,5 +7,6 @@ MD029: style: ordered MD033: false MD041: false +MD045: false MD046: false MD049: false diff --git a/.pre-commit-config-optional.yaml b/.pre-commit-config-optional.yaml index 3b43f9ae1..8c9345e15 100644 --- a/.pre-commit-config-optional.yaml +++ b/.pre-commit-config-optional.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/tcort/markdown-link-check - rev: v3.11.2 + rev: v3.12.2 hooks: - id: markdown-link-check args: [--quiet, --config=.markdown-link-check.json] diff --git a/.prettierignore b/.prettierignore index 21c2dd9fd..a3c34d00a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,2 @@ -*.yaml +*.param.yaml *.rviz -*.json diff --git a/.yamllint.yaml b/.yamllint.yaml index 7837bfe0a..2c7bd088e 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -1,5 +1,8 @@ extends: default +ignore: | + *.param.yaml + rules: braces: level: error @@ -10,8 +13,6 @@ rules: document-start: level: error present: false # Don't need document start markers - ignore: - - .clang-format # Needs '---' between languages line-length: disable # Delegate to Prettier truthy: level: error @@ -19,7 +20,3 @@ rules: quoted-strings: level: error required: only-when-needed # To keep consistent style - indentation: - spaces: consistent - indent-sequences: true - check-multi-line-strings: false