Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run test

on:
pull_request:
branches: [master] # Trigger the workflow on pull requests to the master branch

jobs:
build:
runs-on: ubuntu-latest # Use the latest Ubuntu runner

steps:
- uses: actions/checkout@v4 # Check out the code from the repository

- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin' # Use Temurin distribution for JDK
java-version: 1.8 # Specify Java version 1.8
cache: gradle # Cache Gradle dependencies

- name: Grant execute permission for gradlew
run: chmod +x gradlew # Make the gradlew script executable

- name: Run unit tests
run: ./gradlew test # Run unit tests using Gradle
Loading