From 838190756e7e1c1a347d6015f87f8f13a5f556e9 Mon Sep 17 00:00:00 2001 From: Ulysse Carion Date: Thu, 1 Apr 2021 15:57:09 -0700 Subject: [PATCH] Run each package's tests in parallel --- .github/workflows/test.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1fe26576..f4a5bee1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,25 @@ on: push jobs: test: + strategy: + matrix: + package: + - jtd_codegen_cli + - jtd_codegen_target_csharp_system_text + - jtd_codegen_target_go + - jtd_codegen_target_java_jackson + - jtd_codegen_target_python + - jtd_codegen_target_ruby + - jtd_codegen_target_ruby_sig + - jtd_codegen_target_rust + - jtd_codegen_target_typescript + - jtd_codegen_test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: stable - - run: cargo test + - run: cargo test --package=$PACKAGE + env: + PACKAGE: ${{ matrix.package }}