Skip to content

Commit

Permalink
Updated packages in Closing The Books examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jan 4, 2024
1 parent 979c37f commit 7fa829e
Show file tree
Hide file tree
Showing 102 changed files with 5,540 additions and 7,786 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/samples_closingTheBooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Samples - Closing the Books

on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/closingTheBooks/**"
# run it during pull request
pull_request:
paths:
- "samples/closingTheBooks/**"

defaults:
run:
# relative path to the place where source code (with package.json) is located
working-directory: samples/closingTheBooks

jobs:
build-and-test-code:
name: Build and test application code
# use system defined below in the tests matrix
runs-on: ${{ matrix.os }}

strategy:
# define the test matrix
matrix:
# selected operation systems to run CI
os: [ubuntu-latest] #, windows-latest, macos-latest]
# selected node version to run CI
node-version: [20.10.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
# install dependencies
- run: npm ci
# run linting (ESlint and Prettier)
- run: npm run lint
# run build
- run: npm run build:ts
# run tests
- run: npm test
4 changes: 3 additions & 1 deletion samples/closingTheBooks/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ dist/*coverage/*
**/*.d.ts

# custom definition files
/src/types/
/src/types/

!.eslintrc.js
2 changes: 1 addition & 1 deletion samples/closingTheBooks/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"typescript": {}
}
}
}
}
2 changes: 2 additions & 0 deletions samples/closingTheBooks/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/dist/
**/lib/
3 changes: 1 addition & 2 deletions samples/closingTheBooks/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"editor.formatOnSave": true,

"editor.codeActionsOnSave": {
// For ESLint
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},

"editor.tabSize": 2,
Expand Down
11 changes: 9 additions & 2 deletions samples/closingTheBooks/docker-compose.esdb.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
version: '3.4'

services:
#######################################################
# EventStoreDB
#######################################################
eventstoredb:
image: eventstore/eventstore:21.2.0-buster-slim
image: eventstore/eventstore:23.10.0-bookworm-slim
# use this image if you're running ARM-based proc like Apple M1
# image: eventstore/eventstore:23.10.0-alpha-arm64v8
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
- EVENTSTORE_EXT_TCP_PORT=1113
- EVENTSTORE_EXT_HTTP_PORT=2113
- EVENTSTORE_HTTP_PORT=2113
- EVENTSTORE_INSECURE=true
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
Expand All @@ -22,6 +27,8 @@ services:
- type: volume
source: eventstore-volume-logs
target: /var/log/eventstore
networks:
- esdb_network

volumes:
eventstore-volume-data:
Expand Down
Loading

0 comments on commit 7fa829e

Please sign in to comment.