Skip to content

feat: configure Gradle action #281

feat: configure Gradle action

feat: configure Gradle action #281

Workflow file for this run

name: Lint
on:
push:
branches:
- '**'
- '!main'
pull_request:
branches: [ main ]
workflow_dispatch:
env:
PACKAGE_NAME: aws-kotlin-repo-tools
jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Configure Gradle
run: |
# Keep gradle version in sync with aws-kotlin-repo-tools/gradle/wrapper/gradle-wrapper.properties
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
- name: Lint ${{ env.PACKAGE_NAME }}
run: |
./gradlew ktlint