declapract-typescript-ehmpathy 0.25.8 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ name: review
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - edited
8
+ - synchronize
9
+
10
+ permissions:
11
+ pull-requests: read
12
+
13
+ jobs:
14
+ pullreq-title:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: test:pullreq:title
18
+ uses: amannn/action-semantic-pull-request@v5
19
+ env:
20
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21
+ with:
22
+ # https://github.com/commitizen/conventional-commit-types
23
+ types: |
24
+ fix
25
+ feat
26
+ chore
@@ -36,6 +36,6 @@ jobs:
36
36
  run: npm run build
37
37
 
38
38
  - name: publish
39
- run: npm publish --provenance --access public
39
+ run: npm publish --access public
40
40
  env:
41
41
  NODE_AUTH_TOKEN: ${{ secrets.npm-auth-token }}
@@ -68,7 +68,10 @@ provider:
68
68
  - dynamodb:Scan
69
69
  - dynamodb:GetItem
70
70
  - dynamodb:PutItem
71
- Resource: arn:aws:dynamodb:${aws:region}:${aws:accountId}:table/${self:service}-*
71
+ - dynamodb:DeleteItem
72
+ Resource:
73
+ - arn:aws:dynamodb:${aws:region}:${aws:accountId}:table/${self:service}-* # allow read and write to all tables w/ this services name prefix
74
+ - arn:aws:dynamodb:${aws:region}:${aws:accountId}:table/infrastructure-${self:provider.stage}-table-domain-driven-cache # allow read and write to global domain driven cache
72
75
  # allow publishing to sns topics namespaced by this service
73
76
  - Effect: Allow
74
77
  Action:
@@ -57,13 +57,15 @@ resource "github_branch_protection" "main_branch" {
57
57
  required_status_checks {
58
58
  strict = true # branch must be up to date. otherwise, we dont know if it will really pass once it is merged
59
59
  contexts = [
60
+ "suite / install",
60
61
  "suite / test-commits",
61
62
  "suite / test-types",
62
63
  "suite / test-format",
63
64
  "suite / test-lint",
64
65
  "suite / test-unit",
65
66
  "suite / test-integration",
66
- "suite / test-acceptance-locally"
67
+ "suite / test-acceptance-locally",
68
+ "review / pullreq-title",
67
69
  ]
68
70
  }
69
71
 
@@ -1,5 +1,8 @@
1
1
  import type { Config } from 'jest';
2
2
 
3
+ // ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
4
+ process.env.TZ = 'UTC';
5
+
3
6
  // https://jestjs.io/docs/configuration
4
7
  const config: Config = {
5
8
  verbose: true,
@@ -1,5 +1,8 @@
1
1
  import type { Config } from 'jest';
2
2
 
3
+ // ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
4
+ process.env.TZ = 'UTC';
5
+
3
6
  // https://jestjs.io/docs/configuration
4
7
  const config: Config = {
5
8
  verbose: true,
@@ -1,5 +1,8 @@
1
1
  import type { Config } from 'jest';
2
2
 
3
+ // ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
4
+ process.env.TZ = 'UTC';
5
+
3
6
  // https://jestjs.io/docs/configuration
4
7
  const config: Config = {
5
8
  verbose: true,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.25.8",
5
+ "version": "0.27.0",
6
6
  "main": "src/index.js",
7
7
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
8
8
  "homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",