aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2020-11-28 06:57:25 +0100
committerNicholas Rodrigues Lordello <[email protected]>2020-11-28 06:57:25 +0100
commitcd7beb199e654825cb1b3ab6ac85b805ffdb7871 (patch)
tree0286d96ae23df35be0ae389bb9682d931908a37f /.github/workflows
empty project
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rust.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..683a501
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,25 @@
+name: Rust
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build
+ run: |
+ cargo fmt -- --check
+ cargo clippy --all-targets -- -D warnings
+ cargo build --verbose
+ - name: Run tests
+ run: cargo test --verbose