refactor: rename brownie's __getStore global to __brownieGetStore to reduce 3p globals collision risk #185
Workflow file for this run
This file contains hidden or 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: ktlint and detekt | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Run Detekt & KtLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@6f229686ee4375cc4a86b2514c89bac4930e82c4 # v5 | |
| - name: Set up JDK | |
| uses: actions/setup-java@5d7b2146334bacf88728daaa70414a99f5164e0f # v5 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Restore Gradle cache | |
| uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run Detekt | |
| working-directory: gradle-plugins/react | |
| run: ./gradlew :brownfield:detekt --no-daemon --stacktrace | |
| - name: Run KtLint | |
| working-directory: gradle-plugins/react | |
| run: ./gradlew :brownfield:ktlintCheck --no-daemon --stacktrace |