Skip to content

Commit 63a8097

Browse files
committed
Replace Travis CI with GitHub Actions
1 parent 1766cd6 commit 63a8097

File tree

4 files changed

+68
-18
lines changed

4 files changed

+68
-18
lines changed

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request: {}
6+
7+
name: Continuous integration
8+
9+
jobs:
10+
check:
11+
name: Check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
profile: minimal
18+
toolchain: stable
19+
override: true
20+
- uses: actions-rs/cargo@v1
21+
with:
22+
command: check
23+
24+
test:
25+
name: Test Suite
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: stable
33+
override: true
34+
- uses: actions-rs/cargo@v1
35+
with:
36+
command: test
37+
38+
fmt:
39+
name: Rustfmt
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions-rs/toolchain@v1
44+
with:
45+
profile: minimal
46+
toolchain: stable
47+
override: true
48+
- run: rustup component add rustfmt
49+
- uses: actions-rs/cargo@v1
50+
with:
51+
command: fmt
52+
args: --all -- --check
53+
54+
clippy:
55+
name: Clippy
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: actions-rs/toolchain@v1
60+
with:
61+
profile: minimal
62+
toolchain: stable
63+
override: true
64+
- run: rustup component add clippy
65+
- uses: actions-rs/cargo@v1
66+
with:
67+
command: clippy
68+
args: -- -D warnings

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ homepage = "https://github.com/hjr3/hyper-timeout"
1010
repository = "https://github.com/hjr3/hyper-timeout"
1111
readme = "README.md"
1212

13-
[badges]
14-
travis-ci = { repository = "https://github.com/hjr3/hyper-timeout", branch = "master" }
15-
1613
[dependencies]
1714
bytes = "1.0.0"
1815
hyper = { version = "0.14", default-features = false, features = ["client", "http1", "tcp"] }

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![Build Status](https://travis-ci.org/hjr3/hyper-timeout.svg?branch=master)](https://travis-ci.org/hjr3/hyper-timeout)
21
[![crates.io](https://img.shields.io/crates/v/hyper-timeout.svg)](https://crates.io/crates/hyper-timeout)
32

43
# hyper-timeout

0 commit comments

Comments
 (0)