Skip to content

feat(ci): add cargo-semver-checks workflows #1003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/build-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3

- name: Build events
uses: ./.github/actions/rust-build
with:
Expand All @@ -34,6 +33,23 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

- name: Test individual event features
run: make check-event-features
semver:
name: semver
needs: [build, check-event-features]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check `aws_lambda_events` semver with only default features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: aws_lambda_events
feature-group: default-features
- name: Check `aws_lambda_events` semver with all features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: aws_lambda_events
feature-group: all-features
23 changes: 19 additions & 4 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Lambda Runtime
name: Check Lambda Extension

on:
push:
Expand Down Expand Up @@ -28,16 +28,31 @@ jobs:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3

- name: Build Runtime API Client
uses: ./.github/actions/rust-build
with:
package: lambda_runtime_api_client
toolchain: ${{ matrix.toolchain}}


- name: Build Extensions runtime
uses: ./.github/actions/rust-build
with:
package: lambda-extension
toolchain: ${{ matrix.toolchain}}
semver:
name: semver
needs: build-runtime
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check `lambda-extension` semver with only default features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: lambda-extension
feature-group: default-features
- name: Check `lambda-extension` semver with all features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: lambda-extension
feature-group: all-features
21 changes: 18 additions & 3 deletions .github/workflows/build-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,36 @@ jobs:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3

- name: Build Runtime API Client
uses: ./.github/actions/rust-build
with:
package: lambda_runtime_api_client
toolchain: ${{ matrix.toolchain}}

- name: Build Functions runtime
uses: ./.github/actions/rust-build
with:
package: lambda_runtime
toolchain: ${{ matrix.toolchain}}

- name: Build HTTP layer
uses: ./.github/actions/rust-build
with:
package: lambda_http
toolchain: ${{ matrix.toolchain}}
semver:
name: semver
needs: build-runtime
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check `lambda_runtime_api_client`, `lambda_runtime`, lambda_http` semver with only default features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: lambda_runtime_api_client, lambda_runtime, lambda_http
feature-group: default-features
- name: Check `lambda_runtime_api_client`, `lambda_runtime`, lambda_http` semver with all features
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable
package: lambda_runtime_api_client, lambda_runtime, lambda_http
feature-group: all-features