From 1324b3f57f9e967667af3517121ea20f21ed2dab Mon Sep 17 00:00:00 2001 From: amrbashir Date: Thu, 18 May 2023 03:30:05 +0300 Subject: [PATCH] use matrix. --- .github/workflows/test-rust.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index 9e4cd9f0..90bb2635 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -64,18 +64,18 @@ jobs: working-directory: examples/api run: mkdir dist - - name: test ${{ package }} + - name: test ${{ matrix.package }} if: matrix.package != 'tauri-plugin-sql' run: cargo test --package ${{ matrix.package }} --all-targets - - name: test ${{ package }} --all-features + - name: test ${{ matrix.package }} --all-features if: ${{ !contains(fromJSON('["tauri-plugin-http", "tauri-plugin-upload", "tauri-plugin-updater", "tauri-plugin-webspcket", "tauri-plugin-sql"]', matrix.package)) }} run: cargo test --package ${{ matrix.package }} --all-targets --all-features - - name: test ${{ package }} mysql + - name: test ${{ matrix.package }} mysql if: matrix.package == 'tauri-plugin-sql' run: cargo test --package ${{ matrix.package }} --all-targets --features mysql - - name: test ${{ package }} postgres + - name: test ${{ matrix.package }} postgres if: matrix.package == 'tauri-plugin-sql' run: cargo test --package ${{ matrix.package }} --all-targets --features postgres