Skip to content
check-circle

GitHub Action

Subalfred check features action

v0.1.5 Latest version

Subalfred check features action

check-circle

Subalfred check features action

Use `subalfred check features` to check your runtime code

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Subalfred check features action

uses: hack-ink/[email protected]

Learn more about this action in hack-ink/subalfred-check-features-action

Choose a version

DEPRECATED

Please move to the new repository at https://github.com/hack-ink/cargo-featalign.

Introduction

This will check if your runtime features are enabled correctly.

Including:

  • runtime-benchmarks
  • std
  • try-runtime

Take a look at the real example here.

Usage

Take Polkadot code/repository as an example.

Check single runtime.

name: Checks
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
jobs:
  features-checks:
    name: Task check features
    runs-on: ubuntu-latest
    steps:
      - name: Check
        uses: actions/[email protected]
        with:
          path: runtime/polkadot

Check multiple runtimes at once.

name: Checks
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
jobs:
  features-checks:
    name: Task check features
    strategy:
      matrix:
        runtime: [runtime/polkadot, runtime/kusama, runtime/rococo]
    runs-on: ubuntu-latest
    steps:
      - name: Check ${{ matrix.runtime }}
        uses: hack-ink/[email protected]
        with:
          path: ${{ matrix.runtime }}