name: sea-orm on: push: branches: - master pull_request: branches: - master env: CARGO_TERM_COLOR: always jobs: test: name: Unit Test runs-on: ubuntu-20.04 services: mysql: image: mysql:8.0 env: MYSQL_HOST: 127.0.0.1 MYSQL_DB: mysql MYSQL_USER: sea MYSQL_PASSWORD: sea MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_ROOT_PASSWORD: ports: - "3306:3306" options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - 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 args: --all