-
Notifications
You must be signed in to change notification settings - Fork 389
58 lines (55 loc) · 1.46 KB
/
build-events.yml
File metadata and controls
58 lines (55 loc) · 1.46 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Check Lambda Events
on:
push:
paths:
- "lambda-events/**"
- "Cargo.toml"
pull_request:
paths:
- "lambda-events/**"
- "Cargo.toml"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- "1.84.0" # Current MSRV
- stable
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v6
- name: Build events
uses: ./.github/actions/rust-build
with:
package: aws_lambda_events
toolchain: ${{ matrix.toolchain}}
check-event-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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@v6
- 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