diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a94a83e3..8853cca3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,22 +1,33 @@ -name: Rust +name: sea-orm on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master env: CARGO_TERM_COLOR: always jobs: - build: - + test: + name: Unit Test runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - uses: actions-rs/cargo@v1 + with: + command: build + + - uses: actions-rs/cargo@v1 + with: + command: test