Skip to content

Commit 6bd2ae5

Browse files
committed
Add GitHub Actions config, remove travis
1 parent 7b1e2af commit 6bd2ae5

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

.github/workflows/main.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Build and Tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
main:
14+
name: csaps-rs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Install rust toolchain
21+
uses: actions-rust-lang/setup-rust-toolchain@v1
22+
with:
23+
toolchain: stable
24+
override: true
25+
components: rustfmt, clippy
26+
rustflags: "-A warnings"
27+
28+
- name: Check format
29+
run: cargo fmt --check
30+
31+
- name: Check code
32+
run: cargo clippy
33+
34+
- name: Run tests
35+
run: cargo test

.travis.yml

-27
This file was deleted.

0 commit comments

Comments
 (0)