Skip to content

Commit

Permalink
chore(ci): check-all-features on ready PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Feb 1, 2023
1 parent c62e174 commit 0a07b2e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 23 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/_features.yml
@@ -0,0 +1,31 @@
name: Check Features

on:
workflow_call:
inputs: {}

jobs:
check-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-hack

- uses: actions-rs/cargo@v1
with:
command: ci-check-features
24 changes: 1 addition & 23 deletions .github/workflows/canary.yml
Expand Up @@ -67,26 +67,4 @@ jobs:
command: ci-udeps

check-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-hack

- uses: actions-rs/cargo@v1
with:
command: ci-check-features
uses: ./.github/workflows/_features.yml
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -13,6 +13,11 @@ on:
- "**.md"
- "documentation/**"
- "docker/**"
types:
- opened
- reopened
- synchronize
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -34,10 +39,12 @@ jobs:
with: { os: ubuntu-latest, rust: nightly }

clippy:
if: ${{ !github.event.pull_request.draft }}
uses: ./.github/workflows/_clippy.yml
with: { os: ubuntu-latest, rust: stable }

check-toml:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -57,6 +64,7 @@ jobs:
command: ci-toml

docs:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"
Expand All @@ -79,3 +87,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: ci-doc

check-all-features:
if: ${{ !github.event.pull_request.draft }}
uses: ./.github/workflows/_features.yml

0 comments on commit 0a07b2e

Please sign in to comment.