From 709440311db3ae1f99671ddefe344458eaf78cfb Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 5 Jul 2024 15:19:55 +0900 Subject: [PATCH] refactor --- .github/workflows/test.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07cab26..9af7705 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,28 +39,18 @@ jobs: if: runner.os == 'Linux' && matrix.deno == 'canary' run: npm run lint - test-dvm-file: + test-version-file: runs-on: ubuntu-latest + strategy: + matrix: + deno-version-file: [.dvmrc, .tool-versions] steps: - uses: actions/checkout@v3 - name: Setup Deno uses: ./ with: - deno-version-file: .dvmrc - - - name: Check version - run: deno -V | grep -q "deno 1\.43\.1" - - test-tool-versions-file: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup Deno - uses: ./ - with: - deno-version-file: .tool-versions + deno-version-file: ${{ matrix.deno-version-file }} - name: Check version run: deno -V | grep -q "deno 1\.43\.1"