From 54dfd91729e76b57ed2baf3ebe4143eebef52fef Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 2 Feb 2024 22:24:52 +0800 Subject: [PATCH] ci: temporary fix git clones --- .github/actions/clone-submodules/action.yml | 30 +++++++++++++++++++++ .github/workflows/codecov.yml | 8 +++--- .github/workflows/conformance.yml | 9 ++----- 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 .github/actions/clone-submodules/action.yml diff --git a/.github/actions/clone-submodules/action.yml b/.github/actions/clone-submodules/action.yml new file mode 100644 index 000000000..d3466eb7b --- /dev/null +++ b/.github/actions/clone-submodules/action.yml @@ -0,0 +1,30 @@ +name: Clone submodules + +description: Clone submodules + +runs: + using: composite + steps: + - uses: actions/checkout@v4 + with: + repository: tc39/test262 + path: tasks/coverage/test262 + ref: 17ba9aea47e496f5b2bc6ce7405b3f32e3cfbf7a + + - uses: actions/checkout@v4 + with: + repository: babel/babel + path: tasks/coverage/babel + ref: eccbd203383487f6957dcf086aa83d773691560b + + - uses: actions/checkout@v4 + with: + repository: microsoft/TypeScript + path: tasks/coverage/typescript + ref: 64d2eeea7b9c7f1a79edf42cb99f302535136a2e + + - uses: actions/checkout@v4 + with: + repository: prettier/prettier + path: tasks/prettier_conformance/prettier + ref: ff83d55d05e92ceef10ec0cb1c0272ab894a00a0 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 002be70c0..16cde82a6 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -23,16 +23,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Clone submodules + uses: ./.github/actions/clone-submodules + - name: Install Rust Toolchain uses: ./.github/actions/rustup - name: Install cargo-llvm-cov uses: taiki-e/install-action@v2 with: - tool: cargo-llvm-cov,just - - - name: Clone modules - run: just submodules + tool: cargo-llvm-cov - name: Install llvm-tools-preview for llvm-cov run: rustup component add llvm-tools-preview diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index 86646ea5e..e16f8a3e7 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -46,13 +46,8 @@ jobs: - name: Install Rust Toolchain uses: ./.github/actions/rustup - - name: Install just - uses: taiki-e/install-action@v2 - with: - tool: just - - - name: Clone modules - run: just submodules + - name: Clone submodules + uses: ./.github/actions/clone-submodules - name: Set up Bun uses: oven-sh/setup-bun@v1