Update GitHub action

This commit is contained in:
Billy Chan 2021-06-23 22:26:42 +08:00 committed by Chris Tsang
parent 2cf8911a4b
commit c6a1cfab2e

View File

@ -1,22 +1,33 @@
name: Rust name: sea-orm
on: on:
push: push:
branches: [ master ] branches:
- master
pull_request: pull_request:
branches: [ master ] branches:
- master
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build: test:
name: Unit Test
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build
run: cargo build --verbose - uses: actions-rs/toolchain@v1
- name: Run tests with:
run: cargo test --verbose profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
- uses: actions-rs/cargo@v1
with:
command: test