From d0e5e9b8023a692448e7c351959b5acc719a15a9 Mon Sep 17 00:00:00 2001 From: Thach Nguyen Date: Thu, 4 Aug 2022 15:48:07 +0700 Subject: [PATCH] Correct GitHub actions workflow `Integration Tests` --- .github/workflows/tests.yml | 2 +- __tests__/main.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 035b332..a4947a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,8 +28,8 @@ jobs: java-version: 8 distribution: temurin - name: Setup Maven ${{ matrix.version }} + uses: . id: setup-maven - uses: thachnn/setup-maven@${{ github.ref_name }} with: maven-version: ${{ matrix.version }} - if: steps.setup-maven.outputs.version != matrix.expected diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 8117490..23e7c81 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -105,7 +105,7 @@ describe('integration tests', () => { await run(); expect(core.info).toHaveBeenCalledWith( expect.stringMatching( - new RegExp(`Use.* version ${REAL_VERSION} instead of.* ${TEST_VERSION}`, 'i') + new RegExp(`Use.* version ${REAL_VERSION} instead of.* ${TEST_VERSION.charAt(0)}\\.`, 'i') ) );