diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 000000000..2d82f30dc --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,27 @@ +name: facilitator-ci-build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +defaults: + run: + working-directory: facilitator + +jobs: + build-rust: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Lint + run: cargo fmt --message-format human -- --check + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose