Skip to content

Commit ce455dc

Browse files
Merge pull request #279 from patternfly/remove-cache
fix: Remvoes caching.
2 parents 951b465 + b28bd19 commit ce455dc

8 files changed

Lines changed: 4 additions & 171 deletions

File tree

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ tsc_out
66
.changelog
77
.DS_Store
88
coverage
9-
.cache
109
.tmp
11-
.eslintcache
1210
generated
1311
*.d.ts
1412
**/css/*.js

.github/workflows/build-lint-test.yml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,11 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: '18'
20-
- uses: actions/cache@v2
21-
id: yarn-cache
22-
name: Cache npm deps
23-
with:
24-
path: |
25-
node_modules
26-
**/node_modules
27-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
2820
- run: yarn install --frozen-lockfile
29-
if: steps.yarn-cache.outputs.cache-hit != 'true'
30-
- uses: actions/cache@v2
31-
id: css-in-js-cache
32-
name: Cache css in js files
33-
with:
34-
path: |
35-
packages/module/src/css/*.(t|j|mj)s
36-
key: ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
3721
- name: generate
3822
run: cd packages/module && yarn generate
39-
if: steps.css-in-js-cache.outputs.cache-hit != 'true'
40-
- uses: actions/cache@v2
41-
id: dist
42-
name: Cache dist
43-
with:
44-
path: |
45-
packages/*/dist
46-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
4723
- name: Build dist
4824
run: yarn build
49-
if: steps.dist.outputs.cache-hit != 'true'
5025
lint:
5126
runs-on: ubuntu-latest
5227
env:
@@ -63,22 +38,7 @@ jobs:
6338
- uses: actions/setup-node@v1
6439
with:
6540
node-version: '18'
66-
- uses: actions/cache@v2
67-
id: yarn-cache
68-
name: Cache npm deps
69-
with:
70-
path: |
71-
node_modules
72-
**/node_modules
73-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7441
- run: yarn install --frozen-lockfile
75-
if: steps.yarn-cache.outputs.cache-hit != 'true'
76-
- uses: actions/cache@v2
77-
id: lint-cache
78-
name: Load lint cache
79-
with:
80-
path: '.eslintcache'
81-
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
8242
- name: ESLint
8343
run: yarn lint:js
8444
- name: MDLint
@@ -100,37 +60,11 @@ jobs:
10060
- uses: actions/setup-node@v1
10161
with:
10262
node-version: '18'
103-
- uses: actions/cache@v2
104-
id: yarn-cache
105-
name: Cache npm deps
106-
with:
107-
path: |
108-
node_modules
109-
**/node_modules
110-
~/.cache/Cypress
111-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
11263
- run: yarn install --frozen-lockfile
113-
if: steps.yarn-cache.outputs.cache-hit != 'true'
114-
- uses: actions/cache@v2
115-
id: css-in-js-cache
116-
name: Cache css in js files
117-
with:
118-
path: |
119-
packages/module/src/css
120-
key: ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
12164
- name: generate
12265
run: cd packages/module && yarn generate
123-
if: steps.css-in-js-cache.outputs.cache-hit != 'true'
124-
- uses: actions/cache@v2
125-
id: dist
126-
name: Cache dist
127-
with:
128-
path: |
129-
packages/*/dist
130-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
13166
- name: Build dist
13267
run: yarn build
133-
if: steps.dist.outputs.cache-hit != 'true'
13468
- name: PF4 Jest Tests
13569
run: yarn test --maxWorkers=2
13670
test_a11y:
@@ -150,37 +84,11 @@ jobs:
15084
- uses: actions/setup-node@v1
15185
with:
15286
node-version: '18'
153-
- uses: actions/cache@v2
154-
id: yarn-cache
155-
name: Cache npm deps
156-
with:
157-
path: |
158-
node_modules
159-
**/node_modules
160-
~/.cache/Cypress
161-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
16287
- run: yarn install --frozen-lockfile
163-
if: steps.yarn-cache.outputs.cache-hit != 'true'
164-
- uses: actions/cache@v2
165-
id: css-in-js-cache
166-
name: Cache css in js files
167-
with:
168-
path: |
169-
packages/module/src/css
170-
key: ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
17188
- name: generate
17289
run: cd packages/module && yarn generate
173-
if: steps.css-in-js-cache.outputs.cache-hit != 'true'
174-
- uses: actions/cache@v2
175-
id: dist
176-
name: Cache dist
177-
with:
178-
path: |
179-
packages/*/dist
180-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
18190
- name: Build dist
18291
run: yarn build
183-
if: steps.dist.outputs.cache-hit != 'true'
18492
- name: Build docs
18593
run: yarn build:docs
18694
- name: A11y tests

.github/workflows/build.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,12 @@ jobs:
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
1616
fi
17-
- uses: actions/cache@v2
18-
id: setup-cache
19-
name: Cache setup
20-
with:
21-
path: |
22-
README.md
23-
package.json
24-
.tmplr.yml
25-
packages/*/package.json
26-
packages/*/patternfly-docs/content/**
27-
packages/*/patternfly-docs/generated/**
28-
key: ${{ runner.os }}-setup-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
2917
- name: Run build script
3018
run: ./devSetup.sh
3119
shell: bash
32-
if: steps.setup-cache.outputs.cache-hit != 'true'
3320
- uses: actions/setup-node@v1
3421
with:
3522
node-version: '18'
36-
- uses: actions/cache@v2
37-
id: yarn-cache
38-
name: Cache npm deps
39-
with:
40-
path: |
41-
node_modules
42-
**/node_modules
43-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
4423
- run: yarn install --frozen-lockfile
45-
if: steps.yarn-cache.outputs.cache-hit != 'true'
46-
- uses: actions/cache@v2
47-
id: dist
48-
name: Cache dist
49-
with:
50-
path: |
51-
packages/*/dist
52-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
5324
- name: Build dist
5425
run: yarn build
55-
if: steps.dist.outputs.cache-hit != 'true'

.github/workflows/pr-preview.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ jobs:
2424
- uses: actions/setup-node@v1
2525
with:
2626
node-version: '18'
27-
- uses: actions/cache@v2
28-
id: yarn-cache
29-
name: Load npm deps from cache
30-
with:
31-
path: '**/node_modules'
32-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
3327
- run: yarn install --frozen-lockfile
34-
if: steps.yarn-cache.outputs.cache-hit != 'true'
3528
- run: yarn lint:js
3629
name: Lint JS
3730
if: always()
@@ -40,12 +33,6 @@ jobs:
4033
if: always()
4134
- run: yarn build
4235
name: Build component groups
43-
- uses: actions/cache@v2
44-
id: docs-cache
45-
name: Load webpack cache
46-
with:
47-
path: '.cache'
48-
key: ${{ runner.os }}-v4-${{ hashFiles('yarn.lock') }}
4936
- run: yarn build:docs
5037
name: Build docs
5138
- run: node .github/upload-preview.js packages/module/public

.github/workflows/release.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,10 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: '18'
20-
- uses: actions/cache@v2
21-
id: yarn-cache
22-
name: Cache npm deps
23-
with:
24-
path: |
25-
node_modules
26-
**/node_modules
27-
~/.cache/Cypress
28-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
2920
- run: yarn install --frozen-lockfile
30-
if: steps.yarn-cache.outputs.cache-hit != 'true'
31-
- uses: actions/cache@v2
32-
id: css-in-js-cache
33-
name: Cache css in js files
34-
with:
35-
path: |
36-
packages/module/src/css
37-
key: ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
3821
- name: generate
3922
run: cd packages/module && yarn generate
40-
if: steps.css-in-js-cache.outputs.cache-hit != 'true'
41-
- uses: actions/cache@v2
42-
id: dist
43-
name: Cache dist
44-
with:
45-
path: |
46-
packages/*/dist
47-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
4823
- name: Build dist
4924
run: yarn build
50-
if: steps.dist.outputs.cache-hit != 'true'
5125
- name: Release to NPM
5226
run: cd packages/module && npx semantic-release@19.0.5

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tsc_out
66
.changelog
77
.DS_Store
88
coverage
9-
.cache
9+
1010
.tmp
1111
.eslintcache
1212
generated

jest.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
module.exports = {
22
clearMocks: true,
33
testMatch: ['**/__tests__/**/*.{js,ts}?(x)', '**/*.test.{js,ts}?(x)'],
4-
modulePathIgnorePatterns: [
5-
'<rootDir>/packages/*.*/dist/*.*',
6-
'<rootDir>/packages/*.*/public/*.*',
7-
'<rootDir>/packages/*.*/.cache/*.*'
8-
],
4+
modulePathIgnorePatterns: ['<rootDir>/packages/*.*/dist/*.*', '<rootDir>/packages/*.*/public/*.*'],
95
roots: ['<rootDir>/packages'],
106
transform: {
117
'^.+\\.[jt]sx?$': 'babel-jest',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"clean": "yarn workspace @patternfly/react-topology clean",
1717
"lint:js": "eslint . --ext .js,.jsx,.ts,.tsx --color",
1818
"lint:js:fix": "eslint . --ext .js,.jsx,.ts,.tsx --color --fix",
19-
"lint:md": "eslint packages --ext md --no-eslintrc --config .eslintrc-md.json --cache",
20-
"lint:md:fix": "eslint packages --ext md --no-eslintrc --config .eslintrc-md.json --cache --fix",
19+
"lint:md": "eslint packages --ext md --no-eslintrc --config .eslintrc-md.json",
20+
"lint:md:fix": "eslint packages --ext md --no-eslintrc --config .eslintrc-md.json --fix",
2121
"lint": "yarn lint:js && yarn lint:md",
2222
"lint:fix": "yarn lint:js:fix && yarn lint:md:fix",
2323
"test": "TZ=EST jest packages",

0 commit comments

Comments
 (0)