Skip to content

Commit

Permalink
Create gradle workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas authored Dec 7, 2023
1 parent 14e1359 commit 61f8783
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build -i
4 changes: 2 additions & 2 deletions src/main/java/lt/pow/nukagit/grpc/UsersService.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package lt.pow.nukagit.grpc;

import lt.pow.nukagit.proto.RepositoriesServiceGrpc;
import lt.pow.nukagit.proto.UsersServiceGrpc;

import javax.inject.Inject;
import javax.inject.Singleton;

@Singleton
public class UsersService extends RepositoriesServiceGrpc.RepositoriesServiceImplBase {
public class UsersService extends UsersServiceGrpc.UsersServiceImplBase {
@Inject
public UsersService() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class NukagitIntegrationTest extends Specification {
grpcClient = RepositoriesServiceGrpc.newBlockingStub(channel)

component.minio().makeBucket(MakeBucketArgs.builder()
.bucket("nukagit")
.build())
.bucket("nukagit")
.build())
component.migrateEntrypoint().run()

component.sshServer().start()
Expand Down

0 comments on commit 61f8783

Please sign in to comment.