forked from public-mirrors/ConfigLib
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
642 B
YAML
29 lines
642 B
YAML
name: test-on-pr-or-dev-push
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**/README.md'
|
|
push:
|
|
branches: [ dev ]
|
|
paths-ignore:
|
|
- '**/README.md'
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 16
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '16'
|
|
- name: Test with Gradle
|
|
run: ./gradlew test
|
|
- name: Archive test reports
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: test-reports
|
|
path: |
|
|
build/reports/**/* |