Skip to content

Commit 9e6d8a4

Browse files
committed
Migrate travis CI to github actions CI
1 parent 8e88541 commit 9e6d8a4

File tree

2 files changed

+53
-16
lines changed

2 files changed

+53
-16
lines changed

.github/workflows/test.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
rust:
18+
- stable
19+
- nightly
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: dtolnay/rust-toolchain@master
23+
with:
24+
toolchain: ${{ matrix.rust }}
25+
- name: Build
26+
run: cargo build
27+
- name: Test
28+
run: cargo test
29+
30+
lint:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@master
35+
with:
36+
toolchain: stable
37+
components: rustfmt clippy
38+
- name: Run rustfmt check
39+
run: cargo fmt --all -- --check
40+
- name: Run clippy
41+
run: cargo clippy --all --all-targets -- -D warnings
42+
43+
all-features:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: dtolnay/rust-toolchain@master
48+
with:
49+
toolchain: nightly # The bench feature requires nightly
50+
- name: Test all features
51+
run: cargo test --all-features
52+
53+

.travis.yml

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

0 commit comments

Comments
 (0)