Skip to content

Commit

Permalink
Use GitHub Actions for CI (instead of Travis)
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Jan 11, 2023
1 parent 8e988e4 commit 3b40815
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 45 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on: [push]

jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace

lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace -- -D warnings

test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ readme = "README.md"
keywords = ["mpeg2ts"]
license = "MIT"

[badges]
travis-ci = {repository = "sile/mpeg2ts"}
codecov = {repository = "sile/mpeg2ts"}

[dependencies]
byteorder = "1"
trackable = "0.2"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ mpeg2ts

[![mpeg2ts](https://img.shields.io/crates/v/mpeg2ts.svg)](https://crates.io/crates/mpeg2ts)
[![Documentation](https://docs.rs/mpeg2ts/badge.svg)](https://docs.rs/mpeg2ts)
[![Build Status](https://travis-ci.org/sile/mpeg2ts.svg?branch=master)](https://travis-ci.org/sile/mpeg2ts)
[![Code Coverage](https://codecov.io/gh/sile/mpeg2ts/branch/master/graph/badge.svg)](https://codecov.io/gh/sile/mpeg2ts/branch/master)
[![Actions Status](https://github.com/sile/mpeg2ts/workflows/CI/badge.svg)](https://github.com/sile/mpeg2ts/actions)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

MPEG2-TS decoding/encoding library for Rust.
Expand Down

0 comments on commit 3b40815

Please sign in to comment.