From a1daa3687e38b392819535746b49fdbda632f0e3 Mon Sep 17 00:00:00 2001 From: kixelated Date: Mon, 22 May 2023 16:01:40 -0700 Subject: [PATCH] Add a Github action to compile the server --- .github/workflows/server.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/server.yml diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml new file mode 100644 index 0000000..701d2c8 --- /dev/null +++ b/.github/workflows/server.yml @@ -0,0 +1,23 @@ +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@v3 + - name: Build + working-directory: server + run: cargo build --verbose + - name: Run tests + working-directory: server + run: cargo test --verbose