Skip to content

test: ktlint

test: ktlint #40

Workflow file for this run

name: Lint
on:
pull_request_target:
branches:
- develop/*
concurrency:
group: lint-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
commit-lint:
name: Lint Commit Message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm install
- name: Validate all commits from PR
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
ktlint:
name: Lint Kotlin
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
actions: write
steps:
- name: Clone repo
uses: actions/checkout@master
with:
fetch-depth: 1
- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check