From b99f94e596e85769a8535b6489ad16c37a9fa24d Mon Sep 17 00:00:00 2001 From: WK Wong Date: Tue, 25 Jun 2024 15:36:27 +0800 Subject: [PATCH 1/3] chore(.github): bump action versions --- .github/common-actions/install/action.yml | 4 ++-- .github/workflows/QA.yaml | 10 +++++----- .github/workflows/release.yaml | 2 +- .github/workflows/sync-canary-to-main.yaml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/common-actions/install/action.yml b/.github/common-actions/install/action.yml index dced5a2648..305f848ce2 100644 --- a/.github/common-actions/install/action.yml +++ b/.github/common-actions/install/action.yml @@ -5,12 +5,12 @@ runs: using: composite steps: - name: Install dependencies - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 with: version: 8 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/QA.yaml b/.github/workflows/QA.yaml index 300cc699e4..6763deec1e 100644 --- a/.github/workflows/QA.yaml +++ b/.github/workflows/QA.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 622cd95656..9d364c0602 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install uses: ./.github/common-actions/install diff --git a/.github/workflows/sync-canary-to-main.yaml b/.github/workflows/sync-canary-to-main.yaml index 334ef507c6..c03f5cfde7 100644 --- a/.github/workflows/sync-canary-to-main.yaml +++ b/.github/workflows/sync-canary-to-main.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Ensure all history is fetched From bfb4bab6f3e9a21035adefec089314074f88afa6 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Tue, 25 Jun 2024 15:40:24 +0800 Subject: [PATCH 2/3] refactor(autocomplete): linting --- .../components/autocomplete/__tests__/autocomplete.test.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/components/autocomplete/__tests__/autocomplete.test.tsx b/packages/components/autocomplete/__tests__/autocomplete.test.tsx index 02374b5fec..b61c57ed8b 100644 --- a/packages/components/autocomplete/__tests__/autocomplete.test.tsx +++ b/packages/components/autocomplete/__tests__/autocomplete.test.tsx @@ -48,9 +48,8 @@ const itemsSectionData = [ }, ]; - -const ControlledAutocomplete = (props: AutocompleteProps) => { - const [selectedKey, setSelectedKey] = React.useState("cat"); +const ControlledAutocomplete = (props: AutocompleteProps) => { + const [selectedKey, setSelectedKey] = React.useState("cat"); return ( = {}) => ( ); - describe("Autocomplete", () => { it("should render correctly", () => { const wrapper = render(); From c39b04a8db592e59f61f4806716eb6fc70b74e2f Mon Sep 17 00:00:00 2001 From: WK Wong Date: Tue, 25 Jun 2024 15:46:20 +0800 Subject: [PATCH 3/3] chore(.github): without version --- .github/common-actions/install/action.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/common-actions/install/action.yml b/.github/common-actions/install/action.yml index 305f848ce2..1bf705d739 100644 --- a/.github/common-actions/install/action.yml +++ b/.github/common-actions/install/action.yml @@ -6,8 +6,6 @@ runs: steps: - name: Install dependencies uses: pnpm/action-setup@v4 - with: - version: 8 - name: Setup Node.js uses: actions/setup-node@v4