Skip to content

Commit

Permalink
fix(practs): bump practs to latest best
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Jul 27, 2024
1 parent a2351d2 commit fc73bcc
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/.install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
echo "PACKAGE_DEPS_HASH=$PACKAGE_DEPS_HASH"
echo "package-deps-hash=$PACKAGE_DEPS_HASH" >> "$GITHUB_OUTPUT"
- name: node-modules cache get
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ./node_modules
Expand All @@ -40,7 +40,7 @@ jobs:

- name: node-modules cache set
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ./node_modules
key: ${{ steps.cache.outputs.cache-primary-key }}
2 changes: 1 addition & 1 deletion .github/workflows/.publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version-file: '.nvmrc'

- name: node-modules cache get
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache
with:
path: ./node_modules
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand All @@ -61,7 +61,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand All @@ -82,7 +82,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand All @@ -103,7 +103,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand All @@ -124,7 +124,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand All @@ -145,7 +145,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
node-version-file: '.nvmrc'

- name: get node-modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./node_modules
key: ${{ needs.install.outputs.node-modules-cache-key }}
Expand Down
1 change: 1 addition & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

. "$(dirname -- "$0")/check.nvm.sh"
. "$(dirname -- "$0")/check.lockfile.sh"
1 change: 0 additions & 1 deletion .husky/post-rewrite
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

. "$(dirname -- "$0")/check.nvm.sh"
. "$(dirname -- "$0")/check.lockfile.sh"
3 changes: 3 additions & 0 deletions jest.acceptance.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import type { Config } from 'jest';
// ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
process.env.TZ = 'UTC';

// ensure tests run like on local machines, so snapshots are equal on local && cicd
process.env.FORCE_COLOR = 'true';

// https://jestjs.io/docs/configuration
const config: Config = {
verbose: true,
Expand Down
3 changes: 3 additions & 0 deletions jest.integration.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import type { Config } from 'jest';
// ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
process.env.TZ = 'UTC';

// ensure tests run like on local machines, so snapshots are equal on local && cicd
process.env.FORCE_COLOR = 'true';

// https://jestjs.io/docs/configuration
const config: Config = {
verbose: true,
Expand Down
3 changes: 3 additions & 0 deletions jest.unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import type { Config } from 'jest';
// ensure tests run in utc, like they will on cicd and on server; https://stackoverflow.com/a/56277249/15593329
process.env.TZ = 'UTC';

// ensure tests run like on local machines, so snapshots are equal on local && cicd
process.env.FORCE_COLOR = 'true';

// https://jestjs.io/docs/configuration
const config: Config = {
verbose: true,
Expand Down
84 changes: 72 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"test:lint:deps": "npx depcheck -c ./depcheckrc.yml",
"test:lint:eslint": "eslint -c ./.eslintrc.js src/**/*.ts",
"test:lint": "npm run test:lint:eslint && npm run test:lint:deps",
"test:unit": "FORCE_COLOR=true jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
"test:integration": "FORCE_COLOR=true jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
"test:acceptance:locally": "npm run build && FORCE_COLOR=true LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
"test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
"test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')",
"test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
"test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
"test:acceptance": "npm run build && FORCE_COLOR=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
"test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests",
"prepush": "npm run test && npm run build",
"prepublish": "npm run build",
"preversion": "npm run prepush",
Expand All @@ -83,7 +83,7 @@
"pretty-bytes": "5.6.0",
"simple-leveled-log-methods": "0.1.4",
"ts-node": "8.6.2",
"type-fns": "1.16.0",
"type-fns": "1.17.0",
"uuid": "9.0.0",
"yaml": "1.6.0"
},
Expand All @@ -105,7 +105,7 @@
"core-js": "3.26.1",
"cz-conventional-changelog": "3.3.0",
"declapract": "0.11.5",
"declapract-typescript-ehmpathy": "0.33.6",
"declapract-typescript-ehmpathy": "0.33.11",
"depcheck": "1.4.3",
"eslint": "8.56.0",
"eslint-config-airbnb-typescript": "18.0.0",
Expand Down

0 comments on commit fc73bcc

Please sign in to comment.