Skip to content

Commit

Permalink
Add .github/workflows for a build
Browse files Browse the repository at this point in the history
  • Loading branch information
panic08 authored Oct 20, 2024
2 parents e6ae183 + b6f56ef commit a0368b4
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [8, 11, 17, 21]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}

- name: Make gradlew executable
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build --no-daemon --stacktrace
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* limitations under the License.
*/

package ru.funpay4j;

import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import org.junit.jupiter.api.AfterEach;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* limitations under the License.
*/

package ru.funpay4j;

import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import org.junit.jupiter.api.AfterEach;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
* limitations under the License.
*/

package util;
package ru.funpay4j.util;

import org.junit.jupiter.api.Test;
import ru.funpay4j.util.FunPayUserUtil;

import java.text.SimpleDateFormat;
import java.util.Calendar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
* limitations under the License.
*/

package util;
package ru.funpay4j.util;

import org.junit.jupiter.api.Test;
import ru.funpay4j.util.FunPayUserUtil;

import java.text.SimpleDateFormat;
import java.util.Calendar;
Expand Down

0 comments on commit a0368b4

Please sign in to comment.