Setup Node 16 before checkout #3948
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: Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ktlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Run ktlint | |
run: ./gradlew ktlint | |
swiftlint: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/realm/swiftlint:0.54.0 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Run swiftlint | |
run: swiftlint --reporter github-actions-logging |