From 80aee15f7f2c48e3d50554d5294773f066a8c48a Mon Sep 17 00:00:00 2001 From: kana-rus Date: Mon, 25 Dec 2023 16:06:32 +0900 Subject: [PATCH] refactor check/test .yml --- .github/workflows/check.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1d5194d9..bd8cbe97 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,4 +27,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - args: --features rt_${{ matrix.rt }}${{ matrix.x }}${{ matrix.toolchain == 'nightly' && ',nightly' || '' }},DEBUG + args: --features rt_${{ matrix.rt }}${{ matrix.x != '' && ',' }}${{ matrix.x }}${{ matrix.toolchain != '' && ',' }}${{ matrix.toolchain }},DEBUG diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9903b43f..58293b2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: rt: ['tokio', 'async-std'] - x: [',websocket', ''] + x: ['websocket', ''] toolchain: ['stable', 'nightly'] steps: @@ -27,4 +27,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --features rt_${{ matrix.rt }}${{ matrix.x }}${{ matrix.toolchain == 'nightly' && ',nightly' || '' }},DEBUG + args: --features rt_${{ matrix.rt }}${{ matrix.x != ',' }}${{ matrix.x }}${{ matrix.toolchain != '' && ',' }}${{ matrix.toolchain }},DEBUG