mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-07-09 17:24:49 -06:00
ci: Add job for ktlint
This commit is contained in:
parent
60e44ff049
commit
22d7be4e3c
12
.github/workflows/format.yml
vendored
12
.github/workflows/format.yml
vendored
@ -20,3 +20,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|
||||||
run: ./.ci/clang-format.sh
|
run: ./.ci/clang-format.sh
|
||||||
|
|
||||||
|
ktlint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: opensauce04/azahar-build-environment:latest
|
||||||
|
options: -u 1001
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Build
|
||||||
|
run: ./tools/check-kotlin-formatting.sh
|
||||||
@ -1 +1,7 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
# TODO: Why doesn't the CI environment use the PATH set in the Dockerimage?
|
||||||
|
# It works fine when using the image locally.
|
||||||
|
export PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
|
||||||
|
|
||||||
cd ./src/android/ && ktlint --color '!./app/build/generated/**'
|
cd ./src/android/ && ktlint --color '!./app/build/generated/**'
|
||||||
|
|||||||
@ -1 +1,7 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
# TODO: Why doesn't the CI environment use the PATH set in the Dockerimage?
|
||||||
|
# It works fine when using the image locally.
|
||||||
|
export PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
|
||||||
|
|
||||||
cd ./src/android/ && ktlint -F --color '!./app/build/generated/**'
|
cd ./src/android/ && ktlint -F --color '!./app/build/generated/**'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user