build(deps): bump gitpython from 3.1.32 to 3.1.37 in /tools/base #348
Workflow file for this run
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
name: mobile_format | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
env: | |
if: ${{ github.repository == 'envoyproxy/envoy' }} | |
uses: ./.github/workflows/_env.yml | |
permissions: | |
contents: read | |
statuses: write | |
formatall: | |
if: ${{ needs.env.outputs.mobile_formatting == 'true' }} | |
needs: env | |
permissions: | |
contents: read | |
packages: read | |
name: format_all | |
runs-on: ${{ needs.env.outputs.agent_ubuntu }} | |
timeout-minutes: 45 | |
container: | |
image: ${{ needs.env.outputs.build_image_ubuntu }} | |
env: | |
CLANG_FORMAT: /opt/llvm/bin/clang-format | |
BUILDIFIER_BIN: /usr/local/bin/buildifier | |
BUILDOZER_BIN: /usr/local/bin/buildozer | |
ENVOY_BAZEL_PREFIX: "@envoy" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add safe directory | |
run: git config --global --add safe.directory /__w/envoy/envoy | |
- name: 'Run formatters' | |
run: | | |
cd mobile | |
./tools/check_format.sh | |
precommit: | |
if: ${{ needs.env.outputs.mobile_formatting == 'true' }} | |
needs: env | |
permissions: | |
contents: read | |
packages: read | |
name: precommit | |
runs-on: macos-12 | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 'Install precommit' | |
run: brew install pre-commit | |
- name: 'Run precommit' | |
run: | | |
cd mobile | |
find mobile/* | pre-commit run --files | |
swiftlint: | |
if: ${{ needs.env.outputs.mobile_formatting == 'true' }} | |
needs: env | |
permissions: | |
contents: read | |
packages: read | |
name: swift_lint | |
runs-on: ${{ needs.env.outputs.agent_ubuntu }} | |
timeout-minutes: 5 | |
container: | |
image: ghcr.io/realm/swiftlint:0.50.3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 'Run Swift Lint (SwiftLint)' | |
run: swiftlint lint --strict | |
working-directory: mobile | |
drstring: | |
if: ${{ needs.env.outputs.mobile_formatting == 'true' }} | |
needs: env | |
permissions: | |
contents: read | |
packages: read | |
name: drstring | |
runs-on: macos-12 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 'Run DrString' | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_14.1.app | |
run: | | |
cd mobile | |
./bazelw run --config=remote-ci @DrString//:drstring check | |
kotlinlint: | |
if: ${{ needs.env.outputs.mobile_formatting == 'true' }} | |
needs: env | |
permissions: | |
contents: read | |
packages: read | |
name: kotlin_lint | |
runs-on: macos-12 | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 | |
with: | |
java-version: '8' | |
java-package: jdk | |
architecture: x64 | |
distribution: zulu | |
- run: | | |
cd mobile | |
./ci/mac_ci_setup.sh | |
name: 'Install dependencies' | |
- name: 'Run Kotlin Lint (Detekt)' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd mobile | |
./bazelw build \ | |
--config=mobile-remote-ci-macos \ | |
//library/kotlin/io/envoyproxy/envoymobile:envoy_lib_lint \ | |
//examples/kotlin/hello_world:hello_envoy_kt_lint | |
- name: 'Run Kotlin Formatter (ktlint)' | |
run: | | |
cd mobile | |
./bazelw build --config=remote-ci kotlin_format |