From c9cb263d8c5303c5b80a05cdf5cefd2e62b3e521 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Tue, 29 Dec 2020 22:34:17 +0900 Subject: [PATCH] Add Github Actions, codeowners and funding --- .github/CODEOWNERS | 1 + .github/FUNDING.yml | 1 + .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ README.md | 3 +++ 4 files changed, 52 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..5380bb2 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @dnaka91 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0aa7fc5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: dnaka91 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4992eef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI +on: + pull_request: + push: + branches: + - main +jobs: + test: + name: Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Run rustfmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check + - name: Run clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-features -- -D warnings diff --git a/README.md b/README.md index 5e925d8..46f5dee 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ # OBWS - The obws (obvious) remote control library for OBS +[![Build Status][build-img]][build-url] [![Repository][crates-img]][crates-url] [![Documentation][doc-img]][doc-url] +[build-img]: https://img.shields.io/github/workflow/status/dnaka91/obws/CI/main?style=for-the-badge +[build-url]: https://github.com/dnaka91/obws/actions?query=workflow%3ACI [crates-img]: https://img.shields.io/crates/v/obws?style=for-the-badge [crates-url]: https://crates.io/crates/obws [doc-img]: https://img.shields.io/badge/docs.rs-obws-4d76ae?style=for-the-badge