Skip to content

Commit

Permalink
add missing jest + reduce usage of cache in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Oct 16, 2023
1 parent 44c2b3a commit 32b0ef3
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
23 changes: 11 additions & 12 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ runs:
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d #v3.8.1
with:
Expand All @@ -19,15 +18,15 @@ runs:
scope: '@talend'
cache: 'pnpm'

- name: Get pnpm cache directory path
id: pnpm-cache-dir-path
shell: bash
run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT
# - name: Get pnpm cache directory path
# id: pnpm-cache-dir-path
# shell: bash
# run: echo "dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
id: pnpm-cache # use this to check for `cache-hit` (`steps.pnpm-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
# id: pnpm-cache # use this to check for `cache-hit` (`steps.pnpm-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion tools/babel-plugin-import-d3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.22.20",
"babel-jest": "^29.7.0",
"babel-plugin-tester": "^10.1.0"
"babel-plugin-tester": "^10.1.0",
"jest": "^29.7.0"
},
"jest": {
"transform": {
Expand Down
3 changes: 2 additions & 1 deletion tools/babel-plugin-import-from-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@talend/scripts-core": "^15.0.0",
"babel-plugin-tester": "^10.1.0"
"babel-plugin-tester": "^10.1.0",
"jest": "^29.7.0"
}
}
1 change: 1 addition & 0 deletions tools/scripts-config-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@babel/preset-typescript": "^7.22.15",
"@talend/babel-plugin-assets-api": "^1.1.0",
"@talend/babel-plugin-import-from-index": "^1.5.1",
"jest": "^29.7.0",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-angularjs-annotate": "^0.10.0"
},
Expand Down
3 changes: 3 additions & 0 deletions tools/scripts-config-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"eslint-plugin-storybook": "^0.5.13",
"eslint-plugin-testing-library": "^5.11.1"
},
"devDependencies": {
"jest": "^29.7.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
5 changes: 3 additions & 2 deletions tools/scripts-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"glob": "^8.1.0",
"which": "^2.0.2"
},
"devDependencies":{
"@talend/scripts-config-babel": "^13.0.0"
"devDependencies": {
"@talend/scripts-config-babel": "^13.0.0",
"jest": "^29.7.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 32b0ef3

Please sign in to comment.