From dae062fdddc07eb7d3cd26b28a266b556d9970be Mon Sep 17 00:00:00 2001
From: Bryan Chen <xlchen1291@gmail.com>
Date: Wed, 30 Oct 2019 14:44:39 +1300
Subject: [PATCH] add test workflow

---
 .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 .github/workflows/test.yml

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..69b7fd0
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,29 @@
+name: Test
+
+on:
+  pull_request:
+    branches:
+    - master
+  push:
+    branches:
+    - master
+
+jobs:
+  build:
+    runs-on: ubuntu-18.04
+    steps:
+    - uses: actions/checkout@v1
+    - name: Install toolchain
+      uses: actions-rs/toolchain@v1
+      with:
+        profile: minimal
+        toolchain: nightly-2019-08-19
+        components: rustfmt
+        target: wasm32-unknown-unknown
+        default: true
+    - name: Check format
+      run: cargo fmt --all -- --check
+    - name: Build
+      run: cargo build --locked
+    - name: Run tests
+      run: cargo test --all
-- 
GitLab