From 564eace6a2523038a28ccefd5d74c9607c3a9035 Mon Sep 17 00:00:00 2001 From: ayaxan7 Date: Thu, 16 Jan 2025 01:37:55 +0530 Subject: [PATCH] Introduced pull request checks --- .github/workflows/pull_request.yml | 25 +++++++++++++++++++ .idea/compiler.xml | 2 +- .idea/gradle.xml | 1 + .idea/kotlinc.xml | 2 +- .idea/misc.xml | 2 +- app/build.gradle.kts | 8 +++--- .../java/eu/tutorials/noting/MainActivity.kt | 2 -- build.gradle.kts | 1 + gradle/libs.versions.toml | 20 +++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- 10 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..c02d340 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,25 @@ +name: Run test + +on: + pull_request: + branches:[master] #array of branches to run the workflow on + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 1.8 + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Run unit tests + run: ./gradlew test \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b589d56..b86273d 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 0897082..7b3006b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,6 +4,7 @@