From 99c6d59e272f989fb3d44ee608a9017db873f294 Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Mon, 30 Jan 2023 09:58:13 +0100 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2948370 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Rust + +on: + push: + branches: [ "master" ] + # Releases are tags named 'v', and must have the "major.minor.micro", for example: "0.1.0". + # Release candidates are tagged as `v-rc`, for example: "0.1.0-rc1". + tags: + - "v*" + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Clippy + run: cargo clippy --verbose + - name: Run tests + run: cargo test --verbose