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 = "";