11name : Check
2- defaults :
3- run :
2+ defaults :
3+ run :
44 shell : bash
55
6- on :
6+ on :
77 workflow_dispatch :
88 workflow_call :
99
10- jobs :
11- check :
10+ jobs :
11+ check :
1212 name : Check on ubuntu-latest
1313 runs-on : ubuntu-latest
14- env :
14+ env :
1515 GRADLE_OPTS : " -Dorg.gradle.daemon=true"
16- steps :
16+ steps :
1717 - uses : actions/checkout@v3
1818
1919 - uses : actions/setup-java@v3
20- with :
20+ with :
2121 distribution : ' adopt'
2222 java-version : 11
2323
2424 - name : Restore Gradle cache
2525 id : cache
2626 uses : actions/cache@v3
27- with :
27+ with :
2828 path : |
2929 ~/.gradle/caches
3030 ~/.gradle/wrapper
5151
5252 - uses : github/codeql-action/upload-sarif@v2
5353 if : ${{ always() }}
54- with :
54+ with :
5555 sarif_file : ${{ github.workspace }}/detekt.sarif.json
5656 checkout_path : ${{ github.workspace }}
5757
@@ -60,30 +60,30 @@ jobs:
6060
6161 - uses : actions/upload-artifact@v3
6262 if : ${{ always() }}
63- with :
63+ with :
6464 name : reports-${{ runner.os }}
6565 path : |
6666 **/build/reports
6767
6868 - name : Gradle Check Sandbox
6969 working-directory : sandbox
70- run : ./gradlew check assemble pack publish --scan
70+ run : .. /gradlew check assemble pack publish --scan
7171
7272 - uses : actions/upload-artifact@v3
7373 if : ${{ always() }}
74- with :
74+ with :
7575 name : sandbox-${{ runner.os }}
7676 path : |
7777 sandbox/**/build/reports
7878 sandbox/**/build/publications
7979
8080 - name : Gradle Check Samples
8181 working-directory : samples
82- run : ./gradlew check assemble pack publish --scan
82+ run : .. /gradlew check assemble pack publish --scan
8383
8484 - uses : actions/upload-artifact@v3
8585 if : ${{ always() }}
86- with :
86+ with :
8787 name : samples-${{ runner.os }}
8888 path : |
8989 samples/**/build/reports
@@ -103,7 +103,7 @@ jobs:
103103
104104 - uses : actions/upload-artifact@v3
105105 if : ${{ always() }}
106- with :
106+ with :
107107 name : ts-consumer-${{ runner.os }}
108108 path : |
109109 sandbox/ts-consumer/build
0 commit comments