From 73de02d1413819309bec95ba069cde56bedf443f Mon Sep 17 00:00:00 2001
From: Jean-Michel Picod <jmichel@google.com>
Date: Mon, 2 Mar 2020 14:24:10 +0100
Subject: [PATCH] Try using strategy.matrix to run cargo check

---
 .github/workflows/opensk_test.yml | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/opensk_test.yml b/.github/workflows/opensk_test.yml
index 1571ec7..02c80d9 100644
--- a/.github/workflows/opensk_test.yml
+++ b/.github/workflows/opensk_test.yml
@@ -9,7 +9,12 @@ on:
 
 jobs:
   ctap2_test:
+    name: CTAP2 unit tests
     runs-on: ubuntu-18.04
+    strategy:
+      matrix:
+        cargo_features: [std std,with_ctap1]
+
     steps:
       - uses: actions/checkout@v2
       - uses: actions-rs/toolchain@v1
@@ -27,22 +32,10 @@ jobs:
         uses: actions-rs/cargo@v1
         with:
           command: test
-          args: --release --features std
+          args: --release --features ${{ cargo_features }}
 
       - name: Unit testing of CTAP2 (debug mode)
         uses: actions-rs/cargo@v1
         with:
           command: test
-          args: --features std
-
-      - name: Unit testing of CTAP2 (release mode + CTAP1)
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --features std,with_ctap1
-
-      - name: Unit testing of CTAP2 (debug mode + CTAP1)
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --features std,with_ctap1
+          args: --features ${{ cargo_features }}
-- 
GitLab