Skip to content

feat: add the code (#2) #1

feat: add the code (#2)

feat: add the code (#2) #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: Auto Build CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
override: true
- name: Cargo Test For runtime-async-std
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features runtime-async-std
- name: Cargo Test For runtime-tokio
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features runtime-tokio
- name: Cargo Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Cargo Fmt Check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check