-
Notifications
You must be signed in to change notification settings - Fork 106
41 lines (33 loc) · 1.11 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
40
41
# 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: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Dont clone historic commits.
- name: Set rust version via common env file
run: cat .github/env >> $GITHUB_ENV
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "${{env.RUST_STABLE_VERSION}}"
- name: Install Zepter
run: cargo install --locked -q zepter && zepter --version
- 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:.*'