From c49fa8371ddf1bfa2413cecc1ea0aa06d12b2dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Dani=C5=82o?= Date: Mon, 7 Oct 2019 17:01:11 +0200 Subject: [PATCH] Update build.yml Original commit: https://github.com/enso-org/ide/commit/33506baf7757b4e414333816bea3ff3481acdee4 --- gui/.github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gui/.github/workflows/build.yml b/gui/.github/workflows/build.yml index 132bd2dcd9b..ad4c91ab505 100644 --- a/gui/.github/workflows/build.yml +++ b/gui/.github/workflows/build.yml @@ -4,6 +4,7 @@ on: [push] jobs: build: + name: Build Check runs-on: ${{ matrix.os }} strategy: matrix: @@ -19,8 +20,52 @@ jobs: uses: actions-rs/cargo@v1 with: command: check + + test: + name: Test Suite + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + + fmt: + name: Code Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + clippy: + name: Code Linting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - run: rustup component add clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings coverage: + name: Code Coverage Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v1