Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
update github actions versions
Browse files Browse the repository at this point in the history
+ trigger only one build for every PR
  • Loading branch information
asolntsev committed Jan 23, 2023
1 parent d055b2d commit 5a62e3e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@ name: Run tests
on:
push:
branches:
- '*'
- main
pull_request:
branches:
- '*'

jobs:
run-tests-job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-java@v1
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
cache: 'gradle'
java-version: '11'
- name: Run tests in Gradle
run: ./gradlew clean check --info --rerun-tasks
- uses: actions/upload-artifact@v2
- name: Build
run: ./gradlew clean build -x test
- name: Run tests
run: ./gradlew check --info
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-report
Expand Down

0 comments on commit 5a62e3e

Please sign in to comment.