forked from mirror/async-std
Add GitHub Actions to the merge requirement of bors
This commit is contained in:
parent
c3e38150e4
commit
d9d59dc710
3 changed files with 36 additions and 22 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -1,4 +1,11 @@
|
|||
on: pull_request
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
- trying
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
|
@ -65,3 +72,21 @@ jobs:
|
|||
|
||||
- name: 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 }}
|
||||
|
|
20
.github/workflows/clippy.yml
vendored
20
.github/workflows/clippy.yml
vendored
|
@ -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 }}
|
11
bors.toml
11
bors.toml
|
@ -1 +1,10 @@
|
|||
status = ["continuous-integration/travis-ci/push"]
|
||||
status = [
|
||||
# Travis CI
|
||||
"continuous-integration/travis-ci/push",
|
||||
# GitHub Actions
|
||||
"Build and test on ubuntu-latest",
|
||||
"Build and test on windows-latest",
|
||||
"Build and test on macOS-latest",
|
||||
"Checking fmt and docs",
|
||||
"Clippy check",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue