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:
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