From 3ee33df5071780f8e7a182c4ef84927b128a19cf Mon Sep 17 00:00:00 2001 From: Timofey Myagkikh Date: Sun, 15 Oct 2023 16:31:14 +0300 Subject: [PATCH] github workflow support --- .github/workflows/rust.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..b30f44e --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,28 @@ +name: web-api + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + services: + mongodb: + image: mongo + ports: + - 27017:27017 + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --workspace --verbose + - name: Run tests + run: cargo test --workspace --verbose