From 4c4fc02aa7d895a14b995c52aa47cd8330ec7912 Mon Sep 17 00:00:00 2001 From: Zac Boyd Date: Tue, 23 Jul 2024 09:40:57 +0930 Subject: [PATCH] convert circleci tests --- .github/actions/build-and-test/action.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/build-and-test/action.yml b/.github/actions/build-and-test/action.yml index 7a5f0af2..dcbcde24 100644 --- a/.github/actions/build-and-test/action.yml +++ b/.github/actions/build-and-test/action.yml @@ -16,11 +16,12 @@ runs: run: yarn build shell: bash - - name: Run the tests on this version of Node. - run: |- - set -uex - TESTFILES=$(circleci tests glob lib/**/*.spec.ts | circleci tests split --split-by=timings) - yarn ci:test $TESTFILES + - name: Find and run test files + run: | + TESTFILES=$(find lib -name '*.spec.ts') + for file in $TESTFILES; do + yarn test $file + done env: JEST_JUNIT_OUTPUT_DIR: "./test-reports/jest" JEST_JUNIT_OUTPUT_NAME: ${{ github.sha }}_node${{ inputs.node_version }}_results.xml