Directories moving #10
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: PR_unit_tests | |
on: | |
# Triggers the workflow on push or pull request events but only for the "master" branch | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
Unit-test: | |
name: Run unit tests on PR in master | |
runs-on: ubuntu-20.04 | |
steps: | |
# выкачивает репозиторий и встаёт на нужный коммит | |
- uses: actions/checkout@v2 | |
# Java 8 environment setup | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 20 | |
- name: Update base url from Secrets | |
env: | |
base_url: ${{ secrets.base_url }} | |
run: echo base_url="$base_url" > ./local.properties | |
- name: Run unit tests | |
run: ./gradlew test | |