Griefed
5f43c15fa6
chore(deps): update actions/upload-artifact action to v3 See merge request Griefed/VersionChecker!21
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
gradle:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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`
|