diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..9c567b20 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,30 @@ +name: Rust Nightly + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + override: true + components: rustfmt, clippy + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check + - name: Catch common mistakes + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-features --all-targets -- -D warnings diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml new file mode 100644 index 00000000..2ebfed57 --- /dev/null +++ b/.github/workflows/stable.yml @@ -0,0 +1,28 @@ +name: Rust Stable + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + - name: Run tests (unstable-pre-spec) + uses: actions-rs/cargo@v1 + with: + command: test + args: --features unstable-pre-spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index faafcf4f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: rust -sudo: false -rust: - - stable - - nightly -script: - - cargo test --features unstable-pre-spec