Browse Source

chore(ci): check that benchmarks compile

Signed-off-by: Eliza Weisman <[email protected]>
Eliza Weisman 3 years ago
parent
commit
b4e62fb730
1 changed files with 21 additions and 1 deletions
  1. 21 1
      .github/workflows/tests.yml

+ 21 - 1
.github/workflows/tests.yml

@@ -13,7 +13,9 @@ on:
 
 name: Tests
 jobs:
+
   tests:
+    name: Integration tests
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -27,4 +29,22 @@ jobs:
       - name: Run cargo test
         uses: actions-rs/cargo@v1
         with:
-          command: test
+          command: test
+
+  benches:
+    name: Compile benchmarks
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Install stable toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          profile: minimal
+          toolchain: stable
+          override: true
+          components: rustfmt
+      - name: Run cargo check
+        uses: actions-rs/cargo@v1
+        with:
+          command: check
+          args: -p bench --benches