Skip to content

Commit cb3a654

Browse files
committed
Updated webinar config and fixed GitHub Actions pipelines
1 parent 62d1bd5 commit cb3a654

File tree

20 files changed

+426
-389
lines changed

20 files changed

+426
-389
lines changed

.github/workflows/samples_optimisticConcurrency.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ on:
44
# run it on push to the default repository branch
55
push:
66
branches: [main]
7+
paths:
8+
- "samples/optimisticConcurrency/**"
79
# run it during pull request
810
pull_request:
11+
paths:
12+
- "samples/optimisticConcurrency/**"
913

1014
defaults:
1115
run:

.github/workflows/samples_snapshots.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
# run it on push to the default repository branch
55
push:
66
branches: [main]
7+
paths:
78
- "samples/snapshots/**"
89
# run it during pull request
910
pull_request:
11+
paths:
1012
- "samples/snapshots/**"
1113

1214
defaults:

.github/workflows/samples_webinar.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
# run it on push to the default repository branch
55
push:
66
branches: [main]
7+
paths:
78
- "samples/webinar/**"
89
# run it during pull request
910
pull_request:
11+
paths:
1012
- "samples/webinar/**"
1113

1214
defaults:

samples/from_crud_to_eventsourcing/src/core/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const getWeakETagValue = (etag: ETag): WeakETag => {
3939
return weak[1] as WeakETag;
4040
};
4141

42-
export const toWeakETag = (value: number | bigint): WeakETag => {
42+
export const toWeakETag = (value: number | bigint | string): WeakETag => {
4343
return `W/"${value}"`;
4444
};
4545

samples/webinar/.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ dist/*coverage/*
66
**/*.d.ts
77

88
# custom definition files
9-
/src/types/
9+
/src/types/
10+
11+
!.eslintrc.js

samples/webinar/.eslintrc.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
{
22
"env": {
3-
"es2021": true,
3+
"es2022": true,
44
"node": true
55
},
6+
"plugins": ["@typescript-eslint"],
67
"extends": [
78
"eslint:recommended",
89
"plugin:@typescript-eslint/recommended",
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
911
"plugin:prettier/recommended"
1012
],
1113
"parser": "@typescript-eslint/parser",
1214
"parserOptions": {
13-
"ecmaVersion": 12,
14-
"sourceType": "module"
15+
"ecmaVersion": 13,
16+
"sourceType": "module",
17+
"project": "./tsconfig.json"
1518
},
16-
"plugins": ["@typescript-eslint"],
1719
"rules": {
1820
"no-unused-vars": "off",
1921
"@typescript-eslint/no-unused-vars": [
2022
"error",
2123
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
22-
]
24+
],
25+
"@typescript-eslint/no-misused-promises": ["off"]
2326
},
2427
"settings": {
2528
"import/resolver": {

samples/webinar/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/dist/
2+
**/lib/

samples/webinar/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ services:
44
#######################################################
55
# EventStoreDB
66
#######################################################
7-
eventstoredb:
8-
image: eventstore/eventstore:21.10.5-buster-slim
7+
eventstore.db:
8+
image: eventstore/eventstore:21.10.8-buster-slim
99
# use this image if you're running ARM-based proc like Apple M1
1010
# image: ghcr.io/eventstore/eventstore:21.10.0-alpha-arm64v8
1111
environment:
@@ -29,7 +29,7 @@ services:
2929
target: /var/log/eventstore
3030
networks:
3131
- esdb_network
32-
32+
3333
mongodb:
3434
image: mongo:5.0
3535
# environment:

0 commit comments

Comments
 (0)