Merge pull request #283 from taiki-e/bors

Add GitHub Actions to the merge requirement of bors
pull/305/head
Yoshua Wuyts 5 years ago committed by GitHub
commit d1fe965a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,20 +1,28 @@
on: pull_request name: CI
on:
pull_request:
push:
branches:
- staging
- trying
jobs: jobs:
build_and_test: build_and_test:
name: Build and test on ${{ matrix.os }} name: Build and test
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macOS-latest] os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [nightly]
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Install nightly - name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly toolchain: ${{ matrix.rust }}
override: true override: true
- name: check - name: check
@ -65,3 +73,21 @@ jobs:
- name: Docs - name: Docs
run: cargo doc --features docs run: cargo doc --features docs
clippy_check:
name: Clippy check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: component
uses: actions-rs/components-nightly@v1
with:
component: clippy
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
override: true
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

@ -1,20 +0,0 @@
on: pull_request
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: component
uses: actions-rs/components-nightly@v1
with:
component: clippy
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
override: true
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

@ -1 +1,7 @@
status = ["continuous-integration/travis-ci/push"] status = [
"Build and test (ubuntu-latest, nightly)",
"Build and test (windows-latest, nightly)",
"Build and test (macOS-latest, nightly)",
"Checking fmt and docs",
"Clippy check",
]

Loading…
Cancel
Save