Browse Source

Set up CI on Github Actions

Isaac Woods 3 years ago
parent
commit
1d7c0e21fe
1 changed files with 22 additions and 0 deletions
  1. 22 0
      .github/workflows/rust.yml

+ 22 - 0
.github/workflows/rust.yml

@@ -0,0 +1,22 @@
+name: Build
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+env:
+  CARGO_TERM_COLOR: always
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Build
+      run: cargo build --verbose
+    - name: Run tests
+      run: cargo test --verbose