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 Sep 3, 2024
1 parent d141ec3 commit 56d242c
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 529 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
2 changes: 1 addition & 1 deletion .husky/check.nvm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# if exists a .nvmrc, then `nvm use`, to use the specified version
[[ -f ".nvmrc" ]] && nvm use
# [[ -f ".nvmrc" ]] && nvm use # todo: find a way to share nvm permissions
2 changes: 1 addition & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

# . "$(dirname -- "$0")/check.nvm.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.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
Loading

0 comments on commit 56d242c

Please sign in to comment.