name: test on: push: branches: [ "master" ] paths-ignore: - '**/README.md' pull_request: branches: [ "master" ] paths-ignore: - '**/README.md' jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: check test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: test args: --all fmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: build - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check clippy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: clippy - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: clippy args: --all -- -D warnings