Skip to content

Commit cbbc0c6

Browse files
authored
Merge pull request #268 from rebeccaalpert/remove-old-components
chore(docs): Remove unused v5 components and tests
2 parents 90199d8 + 0e9ed0b commit cbbc0c6

38 files changed

+46
-964
lines changed

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

+10-90
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
name: Cache npm deps
2323
with:
2424
path: |
25-
node_modules
26-
**/node_modules
25+
node_modules
26+
**/node_modules
2727
key: ${{ runner.os }}-npm-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
2828
- run: npm install --frozen-lockfile
2929
if: steps.npm-cache.outputs.cache-hit != 'true'
@@ -58,8 +58,8 @@ jobs:
5858
name: Cache npm deps
5959
with:
6060
path: |
61-
node_modules
62-
**/node_modules
61+
node_modules
62+
**/node_modules
6363
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
6464
- run: npm install --frozen-lockfile
6565
if: steps.npm-cache.outputs.cache-hit != 'true'
@@ -95,9 +95,9 @@ jobs:
9595
name: Cache npm deps
9696
with:
9797
path: |
98-
node_modules
99-
**/node_modules
100-
~/.cache/Cypress
98+
node_modules
99+
**/node_modules
100+
~/.cache/Cypress
101101
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
102102
- run: npm install --frozen-lockfile
103103
if: steps.npm-cache.outputs.cache-hit != 'true'
@@ -136,9 +136,9 @@ jobs:
136136
name: Cache npm deps
137137
with:
138138
path: |
139-
node_modules
140-
**/node_modules
141-
~/.cache/Cypress
139+
node_modules
140+
**/node_modules
141+
~/.cache/Cypress
142142
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
143143
- run: npm install --frozen-lockfile
144144
if: steps.npm-cache.outputs.cache-hit != 'true'
@@ -157,83 +157,3 @@ jobs:
157157
run: npm run build:docs
158158
- name: A11y tests
159159
run: npm run serve:docs & npm run test:a11y
160-
test_component:
161-
runs-on: ubuntu-latest
162-
env:
163-
GH_PR_NUM: ${{ github.event.number }}
164-
needs: build
165-
steps:
166-
- uses: actions/checkout@v4
167-
# Yes, we really want to checkout the PR
168-
- run: |
169-
if [[ ! -z "${GH_PR_NUM}" ]]; then
170-
echo "Checking out PR"
171-
git fetch origin pull/$GH_PR_NUM/head:tmp
172-
git checkout tmp
173-
fi
174-
- uses: actions/setup-node@v4
175-
with:
176-
node-version: '20'
177-
- uses: actions/cache@v4
178-
id: npm-cache
179-
name: Cache npm deps
180-
with:
181-
path: |
182-
node_modules
183-
**/node_modules
184-
~/.cache/Cypress
185-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
186-
- run: npm install --frozen-lockfile
187-
if: steps.npm-cache.outputs.cache-hit != 'true'
188-
- uses: actions/cache@v4
189-
id: dist
190-
name: Cache dist
191-
with:
192-
path: |
193-
packages/*/dist
194-
packages/react-styles/css
195-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
196-
- name: Build dist
197-
run: npm run build
198-
- name: Run component tests
199-
run: npm run cypress:run:ci:cp
200-
test_e2e:
201-
runs-on: ubuntu-latest
202-
env:
203-
GH_PR_NUM: ${{ github.event.number }}
204-
needs: build
205-
steps:
206-
- uses: actions/checkout@v4
207-
# Yes, we really want to checkout the PR
208-
- run: |
209-
if [[ ! -z "${GH_PR_NUM}" ]]; then
210-
echo "Checking out PR"
211-
git fetch origin pull/$GH_PR_NUM/head:tmp
212-
git checkout tmp
213-
fi
214-
- uses: actions/setup-node@v4
215-
with:
216-
node-version: '20'
217-
- uses: actions/cache@v4
218-
id: npm-cache
219-
name: Cache npm deps
220-
with:
221-
path: |
222-
node_modules
223-
**/node_modules
224-
~/.cache/Cypress
225-
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
226-
- run: npm install --frozen-lockfile
227-
if: steps.npm-cache.outputs.cache-hit != 'true'
228-
- uses: actions/cache@v4
229-
id: dist
230-
name: Cache dist
231-
with:
232-
path: |
233-
packages/*/dist
234-
packages/react-styles/css
235-
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
236-
- name: Build dist
237-
run: npm run build
238-
- name: Run component tests
239-
run: npm run cypress:run:ci:e2e

.github/workflows/check-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: check-pr
22
on:
33
pull_request:
44
branches:
5-
- v6
5+
- main
66
jobs:
77
call-build-lint-test-workflow:
88
uses: ./.github/workflows/build-lint-test.yml

.github/workflows/pr-preview.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
99
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
1010
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
11-
GH_PR_NUM: ${{ github.event.number }}
11+
GH_PR_NUM: ${{ github.event.number }}
1212
steps:
1313
- uses: actions/checkout@v4
1414
# Yes, we really want to checkout the PR
@@ -17,10 +17,10 @@ jobs:
1717
git checkout tmp
1818
1919
- run: |
20-
git rev-parse origin/v6
20+
git rev-parse origin/main
2121
git rev-parse HEAD
22-
git rev-parse origin/v6..HEAD
23-
git log origin/v6..HEAD --format="%b"
22+
git rev-parse origin/main..HEAD
23+
git log origin/main..HEAD --format="%b"
2424
2525
# Yes, we really want to checkout the PR
2626
# Injected by generate-workflows.js

.github/workflows/promote.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: promote
22
on:
33
push:
44
# Sequence of patterns matched against refs/tags
5-
tags:
5+
tags:
66
- v6.*
77
jobs:
88
build-and-promote:

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
name: Cache npm deps
2323
with:
2424
path: |
25-
node_modules
26-
**/node_modules
27-
~/.cache/Cypress
25+
node_modules
26+
**/node_modules
27+
~/.cache/Cypress
2828
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
2929
- run: npm install --frozen-lockfile
3030
if: steps.npm-cache.outputs.cache-hit != 'true'

cypress/component/LoadingMessage.cy.tsx

-20
This file was deleted.

cypress/component/SystemMessageEntry.cy.tsx

-10
This file was deleted.

cypress/component/VirtualAssistant.cy.tsx

-34
This file was deleted.

cypress/component/VirtualAssistantAction.cy.tsx

-14
This file was deleted.

cypress/e2e/VirtualAssistant.spec.cy.ts

-20
This file was deleted.

0 commit comments

Comments
 (0)