From 4ab4947f45cc85c4cb1b8f4427e4cfd3d4e0f32f Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Sat, 17 Jun 2023 06:37:22 +0400 Subject: [PATCH] Use action to install asdf See: https://github.com/asdf-vm/actions --- .github/workflows/_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_tests.yml b/.github/workflows/_tests.yml index f69e42100b..66e1cbb9f7 100644 --- a/.github/workflows/_tests.yml +++ b/.github/workflows/_tests.yml @@ -91,10 +91,12 @@ jobs: key: asdf-${{ runner.os }} - name: Set up asdf + uses: asdf-vm/actions/setup@v2.2.0 + + - name: Set up asdf perl plugin and perl env: ASDF_PERL_VERSION: ${{ env.PERL_TEST_VERSION }} run: | - git clone --depth 1 https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.2 && ~/.asdf/bin/asdf plugin add perl || ~/.asdf/bin/asdf update bash -c '~/.asdf/bin/asdf install perl ${{ env.PERL_TEST_VERSION }} --noman -j 8 || true' ~/.asdf/bin/asdf exec cpan install App::cpanminus ~/.asdf/bin/asdf exec cpanm --notest ${{ env.TEST_PERL_MODULES }}