From 6985672ae060f188a6ae8408f3942923461731b9 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Tue, 29 Dec 2020 11:31:02 +0900 Subject: [PATCH] Migrate from Travis CI to GitHub Actions --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 6 ------ README.md | 2 +- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..292b88c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + name: Build + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install `stable-x86_64-unknown-linux-gnu` + uses: actions-rs/toolchain@v1 + with: + toolchain: stable-x86_64-unknown-linux-gnu + default: true + profile: minimal + components: clippy + + - name: cargo-build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose --all + + - name: cargo-test + uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose --all + + - name: cargo-clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D clippy::all -W clippy::pedantic + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6490ffc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: rust -script: - - rustup component add clippy - - cargo build --verbose --all - - cargo test --verbose --all - - cargo clippy -- -D clippy::all -W clippy::pedantic diff --git a/README.md b/README.md index 08fea4d..42abcc0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cargo-license -[![Build Status](https://secure.travis-ci.org/onur/cargo-license.svg?branch=master)](https://travis-ci.org/onur/cargo-license) +[![CI](https://github.com/onur/cargo-license/workflows/CI/badge.svg)](https://github.com/onur/cargo-license/actions?workflow=CI) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/onur/cargo-license/master/LICENSE) ![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.34-red)