diff options
-rw-r--r-- | .github/workflows/rust.yml | 30 | ||||
-rw-r--r-- | .travis.yml | 12 |
2 files changed, 30 insertions, 12 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..1cba5e0 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,30 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build (Default) + run: cargo build --verbose + - name: Run tests (Default) + run: cargo test --verbose + - name: Build (Actix) + run: cd ipfs-api; cargo build --verbose --features with-actix --no-default-features + - name: Run tests (Actix) + run: cd ipfs-api; cargo test --verbose --features with-actix --no-default-features + - name: Build (Hyper with rustls) + run: cd ipfs-api; cargo build --verbose --features with-hyper-rustls --no-default-features + - name: Run tests (Hyper with rustls) + run: cd ipfs-api; cargo test --verbose --features with-hyper-rustls --no-default-features diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 58cdf96..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: rust -rust: - - stable - - beta - - nightly -script: - - cargo build --verbose - - cargo test --verbose - - cd ipfs-api; cargo build --verbose --features with-actix --no-default-features - - cd ipfs-api; cargo test --verbose --features with-actix --no-default-features - - cd ipfs-api; cargo build --verbose --features with-hyper-rustls --no-default-features - - cd ipfs-api; cargo test --verbose --features with-hyper-rustls --no-default-features |