From 76da111fd7a4bc24079599fa20804d3a9cd571da Mon Sep 17 00:00:00 2001 From: Ming Luo Date: Fri, 24 Jan 2020 17:02:26 -0500 Subject: [PATCH 1/4] add github action --- .github/workflows/maven.yml | 28 ++++++++++++++++++++++++++++ README.md | 5 +++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..5f6d3e0 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,28 @@ +name: ci +on: + push: + branches: + - master + pull_request: + # Also trigger on page_build, as well as release created events + page_build: + release: + types: # This configuration does not affect the page_build event above + - created + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v1 + with: + fetch-depth: 1 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/README.md b/README.md index 65c03c5..e4c952f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ In .m2/settings.xml, ``` In pom.xml, -```maven +```pom.xml io.kafkaesque.pulsar pulsar-client-plugin @@ -36,7 +36,8 @@ In pom.xml, ``` -``` java +Java Client example: +``` example.java String domain = "https://.auth0.com/oauth/token"; String clientId = ""; String clientSecret = ""; From 82829d0673746b582a7727b866220a3bd19aa37b Mon Sep 17 00:00:00 2001 From: Ming Luo Date: Fri, 24 Jan 2020 17:07:17 -0500 Subject: [PATCH 2/4] fix java build --- .github/workflows/maven.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5f6d3e0..9b2dc1f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,7 +11,7 @@ on: - created jobs: - build: + build java: runs-on: ubuntu-latest steps: - name: Check out code @@ -25,4 +25,5 @@ jobs: java-version: 1.8 - name: Build with Maven + cd ./java run: mvn -B package --file pom.xml \ No newline at end of file From c90eda478ba3e8f3520760cd45e7f84228ef23d3 Mon Sep 17 00:00:00 2001 From: Ming Luo Date: Fri, 24 Jan 2020 17:08:36 -0500 Subject: [PATCH 3/4] fix java build in maven.yml --- .github/workflows/maven.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9b2dc1f..449ee19 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,5 +25,6 @@ jobs: java-version: 1.8 - name: Build with Maven - cd ./java - run: mvn -B package --file pom.xml \ No newline at end of file + run: | + cd ./java + mvn -B package --file pom.xml \ No newline at end of file From 923140ef23498d204fc29ffbfa5597be86900f67 Mon Sep 17 00:00:00 2001 From: Ming Luo Date: Fri, 24 Jan 2020 17:09:50 -0500 Subject: [PATCH 4/4] fix java build in maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 449ee19..36f3099 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,7 +11,7 @@ on: - created jobs: - build java: + build_java: runs-on: ubuntu-latest steps: - name: Check out code