ci: add scan to github action
This commit is contained in:
35
.github/workflows/tests.yml
vendored
35
.github/workflows/tests.yml
vendored
@@ -29,13 +29,17 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Build
|
- name: Build (without tests & lint)
|
||||||
uses: gradle/gradle-build-action@v2
|
run: ./gradlew build --scan -x test -x ktlintKotlinScriptCheck -x ktlintTestSourceSetCheck -x ktlintMainSourceSetCheck | tee build.log
|
||||||
with:
|
|
||||||
arguments: build -x test -x ktlintKotlinScriptCheck -x ktlintTestSourceSetCheck -x ktlintMainSourceSetCheck
|
- name: Show Build Scan URL
|
||||||
|
run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' build.log
|
||||||
|
|
||||||
- name: processResources
|
- name: processResources
|
||||||
run: ./gradlew processResources
|
run: ./gradlew processResources --scan | tee resources.log
|
||||||
|
|
||||||
|
- name: Show Resource Scan URL
|
||||||
|
run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' resources.log
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -63,14 +67,16 @@ jobs:
|
|||||||
path: build/
|
path: build/
|
||||||
|
|
||||||
- name: Compose Up
|
- name: Compose Up
|
||||||
uses: gradle/gradle-build-action@v2
|
run: ./gradlew composeUp --scan | tee compose.log
|
||||||
with:
|
|
||||||
arguments: composeUp
|
- name: Show Compose Scan URL
|
||||||
|
run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' compose.log
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: gradle/gradle-build-action@v2
|
run: ./gradlew test --scan | tee test.log
|
||||||
with:
|
|
||||||
arguments: test
|
- name: Show Test Scan URL
|
||||||
|
run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' test.log
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: build
|
needs: build
|
||||||
@@ -92,6 +98,7 @@ jobs:
|
|||||||
path: build/
|
path: build/
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
uses: gradle/gradle-build-action@v2
|
run: ./gradlew ktlintCheck --scan | tee lint.log
|
||||||
with:
|
|
||||||
arguments: ktlintCheck
|
- name: Show Lint Scan URL
|
||||||
|
run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' lint.log
|
||||||
|
|||||||
Reference in New Issue
Block a user