Skip to content

Commit

Permalink
switch travis ci to github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lorepozo committed Dec 18, 2023
1 parent a4d338e commit 85aecc0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 45 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo fmt --check
- run: cargo clippy --lib --tests -- -D warnings
- run: cargo doc --verbose
env:
RUSTDOCFLAGS: -Dwarnings
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo test --verbose
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update nightly && rustup default nightly && rustup component add clippy
- run: cargo clippy --benches -- -D warnings
- run: cargo bench --verbose
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
- run: cargo tarpaulin --lib --tests --doc --verbose --out xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# polytype

[![Build Status](https://travis-ci.org/lorepozo/polytype-rs.svg?branch=master)](https://travis-ci.org/lorepozo/polytype-rs)
[![CI](https://github.com/lorepozo/polytype-rs/actions/workflows/ci.yaml/badge.svg)](https://github.com/lorepozo/polytype-rs/actions/workflows/ci.yaml)
[![crates.io](https://img.shields.io/crates/v/polytype.svg)](https://crates.io/crates/polytype)
[![docs.rs](https://docs.rs/polytype/badge.svg)](https://docs.rs/polytype)

Expand Down

0 comments on commit 85aecc0

Please sign in to comment.