use matrix.

pull/370/head
amrbashir 2 years ago
parent d69e01ffc0
commit 1324b3f57f
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -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

Loading…
Cancel
Save