forked from polkadot-fellows/runtimes
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1.01 KB
/
check-features.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Various checks to verify the cargo workspace and its crates are correctly configured.
name: "Workspace features"
on:
push:
branches: ["main", "release-*"]
pull_request:
workflow_dispatch:
# cancel previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check workspace features
runs-on: ubuntu-22.04
steps:
- name: Install stable Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install Zepter
run: cargo install --locked -q zepter && zepter --version
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Dont clone historic commits.
- name: Check features
run: |
zepter run check
# We will add this to the config file once its stabilized. Just run it in the CI for now.
zepter transpose dep lift-to-workspace 'regex:.*'