Skip to content

Commit 3c71bab

Browse files
committed
Merge branch 'develop' of https://github.com/cpathipa/manager into develop
2 parents f958dab + 176fb3a commit 3c71bab

File tree

4,060 files changed

+222620
-122827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,060 files changed

+222620
-122827
lines changed

.github/workflows/ci.yml

Lines changed: 309 additions & 179 deletions
Large diffs are not rendered by default.

.github/workflows/coverage.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/coverage_badge.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@ jobs:
1111

1212
steps:
1313
- name: Checkout Code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

16-
- name: Use Node.js v18.14.0
17-
uses: actions/setup-node@v3
16+
- uses: pnpm/action-setup@v4
1817
with:
19-
node-version: "18.14"
18+
run_install: false
19+
version: 10
2020

21-
- uses: actions/cache@v3
21+
- name: Use Node.js v20.17 LTS
22+
uses: actions/setup-node@v4
2223
with:
23-
path: |
24-
**/node_modules
25-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+
node-version: "20.17"
25+
cache: "pnpm"
2626

2727
- name: Install Dependencies
28-
run: yarn --frozen-lockfile
28+
run: pnpm install --frozen-lockfile
2929

3030
- name: Build @linode/validation
31-
run: yarn build:validation
31+
run: pnpm build:validation
3232

3333
- name: Build @linode/api-v4
34-
run: yarn build:sdk
34+
run: pnpm build:sdk
3535

3636
- name: Run Base Branch Coverage
37-
run: yarn coverage:summary
37+
run: pnpm coverage:summary
3838

3939
- name: Generate Coverage Badge
4040
uses: jaywcjlove/coverage-badges-cli@7f0781807ef3e7aba97a145beca881d36451b7b7 # v1.1.1
4141
with:
42-
label: '@linode/manager coverage'
42+
label: "@linode/manager coverage"
4343
source: ./packages/manager/coverage/coverage-summary.json
4444
output: ./packages/manager/coverage/badges.svg
4545

@@ -52,4 +52,4 @@ jobs:
5252
AWS_ACCESS_KEY_ID: ${{ secrets.COVERAGE_BUCKET_ACCESS }}
5353
AWS_SECRET_ACCESS_KEY: ${{ secrets.COVERAGE_BUCKET_SECRET }}
5454
AWS_REGION: us-east-1
55-
SOURCE_DIR: ./packages/manager/coverage
55+
SOURCE_DIR: ./packages/manager/coverage

.github/workflows/coverage_comment.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Setup Pages
19-
uses: actions/configure-pages@v3
19+
uses: actions/configure-pages@v5
2020

21-
- uses: oven-sh/setup-bun@v1
21+
- uses: oven-sh/setup-bun@v2
2222
with:
2323
bun-version: 1.0.21
2424

2525
- name: Build with VitePress
2626
run: bunx vitepress@1.0.0-rc.35 build docs
2727

2828
- name: Upload artifact
29-
uses: actions/upload-pages-artifact@v2
29+
uses: actions/upload-pages-artifact@v3
3030
with:
3131
path: docs/.vitepress/dist
3232

@@ -40,4 +40,4 @@ jobs:
4040
steps:
4141
- name: Deploy to GitHub Pages
4242
id: deployment
43-
uses: actions/deploy-pages@v2
43+
uses: actions/deploy-pages@v4

.github/workflows/e2e_schedule_and_push.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ env:
77
USER_4: ${{ secrets.USER_4 }}
88
CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }}
99
CY_TEST_FAIL_ON_MANAGED: 1
10+
CY_TEST_RESET_PREFERENCES: 1
11+
CY_TEST_SPLIT_RUN: 1
12+
CY_TEST_SPLIT_RUN_TOTAL: 4
1013
on:
1114
schedule:
1215
- cron: "0 13 * * 1-5"
@@ -18,54 +21,48 @@ on:
1821

1922
jobs:
2023
run-cypress-e2e:
24+
name: Cypress Tests (User ${{ matrix.user.index }})
2125
runs-on: ubuntu-latest
2226
strategy:
2327
fail-fast: false
2428
matrix:
25-
user: ["USER_1", "USER_2", "USER_3", "USER_4"]
29+
user:
30+
- { index: 1, name: 'USER_1' }
31+
- { index: 2, name: 'USER_2' }
32+
- { index: 3, name: 'USER_3' }
33+
- { index: 4, name: 'USER_4' }
2634
steps:
27-
- name: install command line utilities
28-
run: sudo apt-get install -y expect
29-
- uses: actions/checkout@v3
30-
- uses: actions/setup-node@v3
35+
- uses: actions/checkout@v4
36+
- uses: pnpm/action-setup@v4
3137
with:
32-
node-version: "18.14"
33-
- uses: actions/cache@v3
38+
run_install: false
39+
version: 10
40+
- uses: actions/setup-node@v4
3441
with:
35-
path: |
36-
node_modules
37-
*/*/node_modules
38-
~/.cache/Cypress
39-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
40-
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
42+
node-version: "20.17"
4143
- run: |
42-
echo "CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_RECORD_KEY }}" >> $GITHUB_ENV
4344
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
44-
- run: echo "MANAGER_OAUTH=$USER_1" >> ./packages/manager/.env
45-
if: matrix['user'] == 'USER_1'
46-
- run: echo "MANAGER_OAUTH=$USER_2" >> ./packages/manager/.env
47-
if: matrix['user'] == 'USER_2'
48-
- run: echo "MANAGER_OAUTH=$USER_3" >> ./packages/manager/.env
49-
if: matrix['user'] == 'USER_3'
50-
- run: echo "MANAGER_OAUTH=$USER_4" >> ./packages/manager/.env
51-
if: matrix['user'] == 'USER_4'
5245
- run: |
5346
echo "REACT_APP_LAUNCH_DARKLY_ID=${{ secrets.REACT_APP_LAUNCH_DARKLY_ID }}" >> ./packages/manager/.env
5447
echo "REACT_APP_CLIENT_ID=$CLIENT_ID" >> ./packages/manager/.env
5548
echo "REACT_APP_LOGIN_ROOT=${{ secrets.REACT_APP_LOGIN_ROOT }}" >> ./packages/manager/.env
5649
echo "REACT_APP_API_ROOT=${{ secrets.REACT_APP_API_ROOT }}" >> ./packages/manager/.env
5750
echo "REACT_APP_APP_ROOT=${{ secrets.REACT_APP_APP_ROOT }}" >> ./packages/manager/.env
5851
echo "REACT_APP_DISABLE_NEW_RELIC=1" >> ./packages/manager/.env
59-
yarn install:all
60-
yarn build
61-
yarn start:manager:ci &
52+
echo "MANAGER_OAUTH=${{ secrets[matrix.user.name] }}" >> ./packages/manager/.env
53+
echo "CY_TEST_SPLIT_RUN_INDEX=${{ matrix.user.index }}" >> ./packages/manager/.env
54+
- run: pnpm install --frozen-lockfile
55+
- run: pnpm run --filter @linode/validation build
56+
- run: pnpm run --filter @linode/api-v4 build
6257
- name: Run tests
63-
uses: cypress-io/github-action@v5
58+
uses: cypress-io/github-action@v6
6459
with:
6560
working-directory: packages/manager
6661
wait-on: "http://localhost:3000"
6762
wait-on-timeout: 1000
6863
install: false
64+
build: pnpm run build
65+
start: pnpm start:ci
6966
browser: chrome
70-
record: true
71-
parallel: true
67+
record: false
68+
parallel: false
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ESLint Review
2+
on: [pull_request]
3+
jobs:
4+
eslint:
5+
name: ESLint Review
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
9+
checks: write
10+
strategy:
11+
matrix:
12+
package: [manager, api-v4, queries, shared, ui, utilities, validation]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v2
16+
with:
17+
run_install: false
18+
version: 10
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "20.17"
22+
cache: "pnpm"
23+
- run: pnpm install
24+
- uses: abailly-akamai/action-eslint@8ad68ba04fa60924ef7607b07deb5989f38f5ed6 # v1.0.2
25+
with:
26+
workdir: packages/${{ matrix.package }}
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
reporter: github-pr-check
29+
level: warning # This will report both warnings and errors
30+
filter_mode: added # Only comment on new/modified lines

.github/workflows/security_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
container:
1313
image: returntocorp/semgrep
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
# Perform scanning using Semgrep
1818
# Pass even when it identifies issues or encounters errors.

0 commit comments

Comments
 (0)