From 3605911e49c7574343e49c3ded9849270d289e74 Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Wed, 8 Apr 2026 21:49:46 +0900 Subject: [PATCH 1/2] ci: run other tests with -j option --- .github/workflows/coverage.yml | 2 +- .github/workflows/test-other.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9a7b15f79..6cca5e2ab 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -43,7 +43,7 @@ jobs: run: | tests=("command-line-options" "data-rep" "i18n_sjis" "jp-compat" "run" "syntax" "cobj-idx" "file-lock" "file-lock2" "misc") for test in "${tests[@]}"; do - ./"$test" || true + ./"$test" -j || true done - name: Generate a coverage report diff --git a/.github/workflows/test-other.yml b/.github/workflows/test-other.yml index b5ed1b2d1..2054ef6d7 100644 --- a/.github/workflows/test-other.yml +++ b/.github/workflows/test-other.yml @@ -76,7 +76,7 @@ jobs: - name: Run tests ${{ inputs.test-name }} working-directory: tests/ run: - ./${{ inputs.test-name }} + ./${{ inputs.test-name }} -j - name: Upload log files if tests fail if: failure() From ba5db20a63daa33902cdc49b4d67d846842dbbd1 Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Wed, 8 Apr 2026 22:09:35 +0900 Subject: [PATCH 2/2] ci: run file-lock and file-lock2 without -j --- .github/workflows/coverage.yml | 6 +++++- .github/workflows/test-other.yml | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6cca5e2ab..4e03793f5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -43,7 +43,11 @@ jobs: run: | tests=("command-line-options" "data-rep" "i18n_sjis" "jp-compat" "run" "syntax" "cobj-idx" "file-lock" "file-lock2" "misc") for test in "${tests[@]}"; do - ./"$test" -j || true + if [ "$test" = "file-lock" ] || [ "$test" = "file-lock2" ] || [ "$test" = "cobj-idx" ]; then + ./"$test" || true + else + ./"$test" -j || true + fi done - name: Generate a coverage report diff --git a/.github/workflows/test-other.yml b/.github/workflows/test-other.yml index 2054ef6d7..7856e38c1 100644 --- a/.github/workflows/test-other.yml +++ b/.github/workflows/test-other.yml @@ -75,8 +75,12 @@ jobs: - name: Run tests ${{ inputs.test-name }} working-directory: tests/ - run: - ./${{ inputs.test-name }} -j + run: | + if [ "${{ inputs.test-name }}" = "file-lock" ] || [ "${{ inputs.test-name }}" = "file-lock2" ] || [ "${{ inputs.test-name }}" = "cobj-idx" ]; then + ./${{ inputs.test-name }} + else + ./${{ inputs.test-name }} -j + fi - name: Upload log files if tests fail if: failure()