summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJames Zow <jameszow@163.com>2022-07-15 13:46:03 +0200
committermokou <mokou@fastmail.com>2022-07-15 13:46:03 +0200
commit1cc5df0e144ef3551062c162e2e1618c27d97ae0 (patch)
tree9d024dd1ac20e4af4313fd4c4aabedceffa6b662 /.github/workflows
parenta3b5278b4259da83bad1f645e19ba6b0d36f4dde (diff)
feat: add github actions config
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rust.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..bf2a041
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,20 @@
+name: Rustlings Tests
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: cargo build --verbose
+ - name: Run tests
+ run: cargo test --verbose