Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Nov 7, 2024
1 parent d5fc8f0 commit b5a42d8
Show file tree
Hide file tree
Showing 5 changed files with 1,826 additions and 1,131 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,18 @@ env:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# note currently PACT_PROVIDER isn't used in the code
pact_provider:
[
"pactflow-example-provider-java-kafka",
# "pactflow-example-bi-directional-provider-restassured",
# "pactflow-example-bi-directional-provider-postman",
# "pactflow-example-provider",
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "16"
- name: Install for ${{ matrix.pact_provider }}
node-version: "20"
- name: Install
run: npm i
- name: Test for ${{ matrix.pact_provider }}
- name: Test
run: make test
env:
PACT_PROVIDER: ${{ matrix.pact_provider }}
- name: Publish pacts
run: GIT_BRANCH=${GIT_REF:11} make publish_pacts
env:
PACT_PROVIDER: ${{ matrix.pact_provider }}


# Runs on branches as well, so we know the status of our PRs
can-i-deploy:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ publish_pacts: .env
## Build/test tasks
## =====================

install:
npm install

test: .env
npm run test:pact

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ https://docs.pactflow.io/docs/workshops/ci-cd/set-up-ci/prerequisites/

## Usage

* Install the project: `make install`
* `npm install`
* Running the API locally: `make start`
* `docker-compose -f kafka-cluster.yml up -d --no-recreate`
* `npm run start`
* Producing test events into the `product` topic: `make test-events`
* `npm run test:events`
* Retrieve latest products: `curl localhost:8080/products`
Loading

0 comments on commit b5a42d8

Please sign in to comment.