diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29f76fa..0121d47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,27 +3,7 @@ name: Continuous integration on: [push, pull_request] jobs: - check: - name: Check - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - 1.36.0 - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - - uses: actions-rs/cargo@v1 - with: - command: check - - test: + ci: name: Test runs-on: ubuntu-latest strategy: @@ -39,48 +19,21 @@ jobs: profile: minimal toolchain: ${{ matrix.rust }} override: true + components: rustfmt, clippy - run: sudo DEBIAN_FRONTEND=noninteractive apt-get -y install postfix - run: smtp-sink 2525 1000& - uses: actions-rs/cargo@v1 with: - command: test - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 + command: check + - uses: actions-rs/cargo@v1 with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - - run: rustup component add rustfmt + command: test - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - - clippy: - name: Clippy - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - - run: rustup component add clippy - uses: actions-rs/cargo@v1 with: command: clippy args: -- -D warnings +