From b1ecc4d95045cff8253992ff9f0d31178a11c5b3 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Wed, 24 Mar 2021 21:40:35 +0100 Subject: [PATCH] Create basic CI workflow (#41) --- .github/workflows/rust.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 00000000..b8acb2eb --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,32 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '10.x' + - name: Install Dependencies + run: cd client/web && npm install + - name: build node + run: cd client/web && npm run build + - name: Format + run: cargo fmt --all -- --check + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose