Skip to content

Commit cf802a6

Browse files
Seulgi Kimsgkim126
authored andcommitted
Use GitHub Actions instead of Travis CI
1 parent 62d4681 commit cf802a6

File tree

4 files changed

+36
-47
lines changed

4 files changed

+36
-47
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on: [push, pull_request]
2+
3+
name: ci
4+
5+
jobs:
6+
unit-test:
7+
name: unit-test
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [macOS-latest, ubuntu-latest]
12+
steps:
13+
- uses: actions/checkout@v1
14+
with:
15+
fetch-depth: 1
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
profile: minimal
20+
- run: cargo test --verbose --all
21+
staic-analysis:
22+
name: staic-analysis
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v1
26+
with:
27+
fetch-depth: 1
28+
- uses: actions-rs/toolchain@v1
29+
with:
30+
toolchain: nightly-2019-11-06
31+
override: true
32+
profile: minimal
33+
components: clippy, rustfmt
34+
- run: cargo fmt -- --check
35+
- run: cargo clippy --all --all-targets -- -D warnings

.travis.yml

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

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.38.0
1+
stable

rustfmt.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ reorder_modules = true
3434
# reorder_impl_items = false
3535
# report_todo = "Never"
3636
# report_fixme = "Never"
37-
# skip_children = false
3837
space_after_colon = true
3938
space_before_colon = false
4039
struct_field_align_threshold = 0

0 commit comments

Comments
 (0)