Skip to content

Commit 6936ff1

Browse files
committed
Migrate to github actions
1 parent f157007 commit 6936ff1

File tree

12 files changed

+1450
-59
lines changed

12 files changed

+1450
-59
lines changed

Diff for: .github/workflows/audit.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: audit
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
audit:
8+
name: cargo audit
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions-rs/audit-check@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
16+
on:
17+
push:
18+
branches: [staging, trying]
19+
pull_request:
20+
branches: [master]

Diff for: .github/workflows/base.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: base
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
test:
8+
name: cargo test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: hecrj/setup-rust-action@v1
13+
- uses: actions-rs/cargo@v1
14+
with:
15+
command: test
16+
args: --workspace --locked --all-features
17+
18+
on:
19+
push:
20+
branches: [staging, trying]
21+
pull_request:
22+
branches: [master]

Diff for: .github/workflows/coverage.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: coverage
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
codecov:
8+
name: codecov
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
- uses: actions-rs/[email protected]
16+
with:
17+
args:
18+
--locked
19+
--all-features
20+
--
21+
--skip 'proptest::'
22+
- uses: codecov/codecov-action@v1
23+
24+
on:
25+
pull_request:
26+
branches: [master]
27+
schedule:
28+
- cron: '0 0 * * 5'

Diff for: .github/workflows/docs.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: docs
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
docsrs:
8+
name: cargo doc --cfg docsrs
9+
runs-on: ubuntu-latest
10+
env:
11+
RUSTDOCFLAGS: '--cfg=docsrs -Dwarnings'
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: hecrj/setup-rust-action@v1
15+
with:
16+
rust-version: nightly
17+
- uses: actions-rs/cargo@v1
18+
with:
19+
command: doc
20+
toolchain: nightly
21+
args: --all-features --no-deps
22+
23+
on:
24+
push:
25+
branches: [staging, trying]

Diff for: .github/workflows/exhaustive.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: exhaustive
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
test:
8+
name: cargo test
9+
strategy:
10+
matrix:
11+
platform:
12+
- { toolchain: stable, target: i686-pc-windows-msvc, os: windows-latest }
13+
- { toolchain: stable, target: i686-unknown-linux-gnu, os: ubuntu-latest }
14+
- { toolchain: stable, target: x86_64-apple-darwin, os: macos-latest }
15+
- { toolchain: stable, target: x86_64-pc-windows-msvc, os: windows-latest }
16+
- { toolchain: stable, target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
17+
runs-on: ${{ matrix.platform.os }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: hecrj/setup-rust-action@v1
21+
with:
22+
rust-version: ${{ matrix.platform.toolchain }}
23+
targets: ${{ matrix.platform.target }}
24+
- uses: actions-rs/cargo@v1
25+
with:
26+
toolchain: ${{ matrix.platform.toolchain }}
27+
command: test
28+
args: --all --locked --all-features
29+
30+
features:
31+
name: cargo hack check --feature-powerset
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: hecrj/setup-rust-action@v1
36+
- uses: actions-rs/cargo@v1
37+
with:
38+
command: install
39+
args: cargo-hack
40+
- uses: actions-rs/cargo@v1
41+
with:
42+
command: hack
43+
args: check
44+
--workspace
45+
--feature-powerset
46+
--no-dev-deps
47+
--skip 'all,all-algorithms,all-implementations'
48+
49+
on:
50+
push:
51+
branches: [staging, trying]

Diff for: .github/workflows/lint.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: lint
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
fmt:
8+
name: cargo fmt --check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: hecrj/setup-rust-action@v1
13+
with: { components: rustfmt }
14+
- uses: actions-rs/cargo@v1
15+
with:
16+
command: fmt
17+
args: --all -- --check
18+
19+
clippy:
20+
name: cargo clippy
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: hecrj/setup-rust-action@v1
25+
with: { components: clippy }
26+
- uses: actions-rs/cargo@v1
27+
with:
28+
command: clippy
29+
args: --all --all-targets --all-features --locked -- -D warnings
30+
31+
on:
32+
push:
33+
branches: [staging, trying]
34+
pull_request:
35+
branches: [master]

Diff for: .github/workflows/nightly.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: nightly
2+
3+
env:
4+
RUST_BACKTRACE: 1
5+
6+
jobs:
7+
test:
8+
name: cargo +nightly test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: hecrj/setup-rust-action@v1
13+
with:
14+
rust-version: nightly
15+
- uses: actions-rs/cargo@v1
16+
with:
17+
toolchain: nightly
18+
command: test
19+
args: --all --locked --all-features
20+
21+
fmt:
22+
name: cargo +nightly fmt --check
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: hecrj/setup-rust-action@v1
27+
with:
28+
rust-version: nightly
29+
components: rustfmt
30+
- uses: actions-rs/cargo@v1
31+
with:
32+
toolchain: nightly
33+
command: fmt
34+
args: --all -- --check
35+
36+
clippy:
37+
name: cargo +nightly clippy
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: hecrj/setup-rust-action@v1
42+
with:
43+
rust-version: nightly
44+
components: clippy
45+
- uses: actions-rs/cargo@v1
46+
with:
47+
toolchain: nightly
48+
command: clippy
49+
args: --all --all-targets --all-features --locked -- -D warnings
50+
51+
on:
52+
schedule:
53+
- cron: '0 2 * * *'

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/target
22
**/*.rs.bk
3-
Cargo.lock

Diff for: .travis.yml

-57
This file was deleted.

0 commit comments

Comments
 (0)