Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit e54fded

Browse files
authored
Enable GitHub Actions (#54)
* add github ci Signed-off-by: TXXT <[email protected]>
1 parent 9c6b283 commit e54fded

File tree

4 files changed

+58
-36
lines changed

4 files changed

+58
-36
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
schedule:
9+
- cron: '0 22 * * *'
10+
11+
env:
12+
RUST_BACKTRACE: 1
13+
RUSTFLAGS: "--deny=warnings"
14+
15+
jobs:
16+
Linux-Stable:
17+
name: Linux-Stable
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- run: cargo fmt -- --check
22+
- run: cargo clippy -- -D clippy::all
23+
- run: cargo test --all -- --nocapture
24+
- run: cargo test --all --all-features -- --nocapture
25+
- run: cargo bench --all -- --test
26+
- run: cargo bench --all --all-features -- --test
27+
28+
Linux-Nightly:
29+
name: Linux-Nightly
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- run: rustup default nightly
34+
- run: cargo test --all -- --nocapture
35+
- run: cargo test --all --all-features -- --nocapture
36+
- run: cargo bench --all -- --test
37+
- run: cargo bench --all --all-features -- --test
38+
39+
Mac-Stable:
40+
name: Mac
41+
runs-on: macos-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- run: cargo test --all -- --nocapture
45+
- run: cargo test --all --all-features -- --nocapture
46+
- run: cargo bench --all -- --test
47+
- run: cargo bench --all --all-features -- --test
48+
49+
Win-Stable:
50+
name: Windows
51+
runs-on: windows-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- run: cargo test --all -- --nocapture
55+
- run: cargo test --all --all-features -- --nocapture
56+
- run: cargo bench --all -- --test
57+
- run: cargo bench --all --all-features -- --test

.travis.yml

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

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ rand = "0.7"
2121
[features]
2222
failpoints = []
2323

24-
[badges]
25-
travis-ci = { repository = "tikv/fail-rs" }
26-
appveyor = { repository = "busyjay/fail-rs" }
27-
2824
[package.metadata.docs.rs]
2925
all-features = true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fail-rs
22

3-
[![Build Status](https://travis-ci.org/tikv/fail-rs.svg?branch=master)](https://travis-ci.org/tikv/fail-rs)
3+
[![CI](https://github.com/tikv/fail-rs/workflows/CI/badge.svg)](https://github.com/tikv/fail-rs/actions)
44
[![Crates.io](https://img.shields.io/crates/v/fail.svg?maxAge=2592000)](https://crates.io/crates/fail)
55

66
[Documentation](https://docs.rs/fail).

0 commit comments

Comments
 (0)