aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/check.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/check.yml')
-rw-r--r--.github/workflows/check.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 0000000..3ad9a44
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,20 @@
+name: Build and Test
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: cargo fmt -- --check
+ - run: cargo build --verbose
+ - run: cargo test --verbose
+