Skip to content

Commit

Permalink
Migrate CI from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
phsym committed Sep 23, 2024
1 parent c28de30 commit d531e95
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 12 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.81
with:
components: clippy,rustfmt
- run: sudo apt-get install libsctp1 libsctp-dev lksctp-tools

- name: Build examples
run: cargo build --verbose --examples --all
- name: Run tests
run: cargo test --verbose --all

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.81
with:
components: clippy,rustfmt
- name: Check formatting
run: cargo fmt --check --all
- name: Run Cargo check
run: cargo check --all --all-features --all-targets
- name: Run Clippy linter
run: cargo clippy --all --all-features --all-targets -- -D clippy::all


12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit d531e95

Please sign in to comment.