Skip to content

Commit

Permalink
Fix check github-workflows. for To make it work on Windows as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
momosetkn committed Oct 14, 2024
1 parent a707a46 commit f587756
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ jobs:
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Configure Gradle for GitHub Packages
run: |
echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties
- name: Run Test
run: ./gradlew test
run: ./gradlew test -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}"

- name: Upload reports
if: failure()
Expand All @@ -58,13 +53,8 @@ jobs:
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Configure Gradle for GitHub Packages
run: |
echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties
- name: Run detekt
run: ./gradlew detekt
run: ./gradlew detekt -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}"

- name: Upload reports
if: failure()
Expand All @@ -89,13 +79,8 @@ jobs:
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Configure Gradle for GitHub Packages
run: |
echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties
- name: Run ktlintCheck
run: ./gradlew ktlintCheck
run: ./gradlew ktlintCheck -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}"

- name: Upload reports
if: failure()
Expand Down

0 comments on commit f587756

Please sign in to comment.