Browse Source

chore(ci): add test workflow

Eliza Weisman 3 years ago
parent
commit
e3d6ab1a08
1 changed files with 24 additions and 0 deletions
  1. 24 0
      .github/workflows/tests.yml

+ 24 - 0
.github/workflows/tests.yml

@@ -0,0 +1,24 @@
+on:
+ - push
+ - pull_request
+ - workflow_dispatch
+
+name: Tests
+jobs:
+  tests:
+    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 test
+        uses: actions-rs/cargo@v1
+        with:
+          command: test
+          env:
+            LOOM_MAX_PREEMPTIONS: 2