This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
chore(deps): update actions/checkout action to v4 #200
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: Test | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Where is Java | |
run: which java | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --info --stacktrace | |
- name: List files in libs | |
run: ls -ahl build/libs | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts-gradle | |
path: | | |
build/libs/ | |
!build/libs/libraries/ | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: report | |
path: build/reports/tests/test/ | |
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` |