diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-12 21:39:58 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-15 14:14:20 +0000 |
| commit | 1ab71ef07f6492591b664eb02c95fd347e557128 (patch) | |
| tree | 90b83f1105bf4d902762f99a1bd918d6a45b180f /.github | |
| parent | 114d80d9a3228b0e7124d0bc4855bd72e482fcb0 (diff) | |
| download | mullvadvpn-1ab71ef07f6492591b664eb02c95fd347e557128.tar.xz mullvadvpn-1ab71ef07f6492591b664eb02c95fd347e557128.zip | |
Create GitHub Actions workflow for Kotlin linter
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/android-ktlint.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/android-ktlint.yml b/.github/workflows/android-ktlint.yml new file mode 100644 index 0000000000..6b5c7bbdfd --- /dev/null +++ b/.github/workflows/android-ktlint.yml @@ -0,0 +1,25 @@ +name: Android app Kotlin linter +on: + # Run linter whenever a Kotlin file changes + push: + paths: + - .github/workflows/android-ktlint.yml + - android/**/*.kt + # Run linter if requested manually from the Actions tab + workflow_dispatch: +jobs: + ktlint: + runs-on: ubuntu-latest + steps: + # Checkout repository + - uses: actions/checkout@v2 + + # Install Ktlint + - uses: nbadal/action-ktlint-setup@v1 + with: + ktlint_version: 0.40.0 + + # Check formatting + - run: | + cd android + ktlint -a |
