Skip to content

Commit

Permalink
test: replace Travis CI with GitHub Actions
Browse files Browse the repository at this point in the history
Travis stopped working at some point. The new workflow now runs
cargo-fmt and cargo-clippy, taken from the specified MSRV.
  • Loading branch information
crawford committed Oct 11, 2023
1 parent f5d0c90 commit 18a2dd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on: [ pull_request ]
jobs:
code-check:
name: Code Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Parse MSRV
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV
- name: Install Rust Toolchain
run: rustup toolchain install $RUSTUP_TOOLCHAIN
- name: Install Clippy
run: rustup component add clippy

- name: Check format
run: cargo fmt --check

- name: Clippy check
run: cargo clippy --no-deps -- --deny=warnings
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit 18a2dd7

Please sign in to comment.