Skip to content

Commit 6de2d36

Browse files
committed
Migrate CI from Travis to GitHub Actions
1 parent 9d55b72 commit 6de2d36

3 files changed

Lines changed: 36 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
name: Build and test
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install Rust nightly
21+
uses: dtolnay/rust-toolchain@nightly
22+
with:
23+
components: clippy, rustfmt
24+
25+
- name: Cache Rust dependencies
26+
uses: Swatinem/rust-cache@v2
27+
28+
- name: Check formatting
29+
run: cargo fmt --all -- --check
30+
31+
- name: Run Clippy
32+
run: cargo clippy --all-targets --all-features -- -D warnings
33+
34+
- name: Run tests
35+
run: cargo test --all-features

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libnetkeeper
22

3-
[![Build Status](https://travis-ci.com/realityone/libnetkeeper.svg?branch=master)](https://travis-ci.com/realityone/libnetkeeper)
3+
[![CI](https://github.com/realityone/libnetkeeper/actions/workflows/ci.yml/badge.svg)](https://github.com/realityone/libnetkeeper/actions/workflows/ci.yml)
44

55
Rust implementations of network authentication algorithms used by several campus and ISP clients.
66

0 commit comments

Comments
 (0)