Vadim test automatization #32
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: Run All Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
buildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup JDK 20 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '20' | |
- name: Build Gradle | |
run: gradle bootRun -Dspring.profiles.active=test & | |
- name: Wait for the application to start | |
run: sleep 60 | |
- name: Run Tests | |
run: gradle test |