Skip to content

Commit

Permalink
build: update github action workflows (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ince authored Sep 26, 2023
1 parent de4db31 commit 8136f09
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 18 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,8 @@ name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
pr-check:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 'lts'
- run: npm install
- run: npm ci
- run: npx danger ci --verbose --failOnErrorsdanger
env:
GITHUB_TOKEN: ${{ github.token }}

build:
runs-on: ubuntu-latest
steps:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Pull Requests

on:
pull_request:
branches: [ "main" ]

jobs:
pr-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm ci
- run: npx danger ci --verbose --failOnErrors
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_TOKEN }}

build:
runs-on: ubuntu-latest
needs:
- pr-check
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B verify
env:
MAVEN_USERNAME: ${{ vars.PACKAGES_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.PACKAGES_PASSWORD }}

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ Currently, this library is deployed to Github Packages, so you need to configure

In order to use the client, create an instance of `org.neo4j.cdc.client.CDCClient` class, providing an instance of a
driver instance, an optional polling interval to mimic streaming behaviour with under the hood polling, and optional
list
of selectors that you can specify what entities' changes you are interested.
list of selectors that you can specify what entities' changes you are interested.

A typical use case would be;

Expand Down

0 comments on commit 8136f09

Please sign in to comment.