Switch to GitHub Actions for CI

This commit is contained in:
Danny Guo 2019-12-07 08:56:24 -05:00 committed by Danny Guo
parent f3918bd78a
commit c4cdd9c35d
3 changed files with 25 additions and 16 deletions

24
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
rust: ["beta", "stable", "1.31.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build the code
run: cargo build --verbose
- name: Test the code
run: cargo test --verbose

View File

@ -1,15 +0,0 @@
language: rust
os:
- linux
- windows
rust:
- 1.31.0
- nightly
- beta
- stable
matrix:
allow_failures:
- rust: nightly

View File

@ -2,7 +2,7 @@
[![Crates.io](https://img.shields.io/crates/v/strsim.svg)](https://crates.io/crates/strsim)
[![Crates.io](https://img.shields.io/crates/l/strsim.svg?maxAge=2592000)](https://github.com/dguo/strsim-rs/blob/master/LICENSE)
[![build status](https://travis-ci.org/dguo/strsim-rs.svg?branch=master)](https://travis-ci.org/dguo/strsim-rs)
[![CI status](https://github.com/dguo/strsim-rs/workflows/CI/badge.svg)](https://github.com/dguo/strsim-rs/actions?query=branch%3Amaster)
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
[Rust](https://www.rust-lang.org) implementations of [string similarity metrics]: