-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring aws_lambda_events as subpackage
Signed-off-by: David Calavera <david.calavera@gmail.com>
- Loading branch information
Showing
173 changed files
with
12,431 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: "Rust builds" | ||
description: "Builds, tests, and formats Rust code" | ||
inputs: | ||
package: | ||
required: true | ||
description: "the Rust package to test" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Build | ||
shell: bash | ||
run: cargo build --all-features --verbose --package ${{ inputs.package }} | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: cargo test --all-features --verbose --package ${{ inputs.package }} | ||
|
||
- name: Run fmt check | ||
id: cargoFmt | ||
shell: bash | ||
run: cargo fmt --package ${{ inputs.package }} -- --check | ||
- name: Notify fmt check | ||
if: failure() && steps.cargoFmt.outcome == 'failure' | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const message = `👋 It looks like your code is not formatted like we expect. | ||
Please run \`cargo fmt\` and push the code again.`; | ||
await github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: message, | ||
}); | ||
core.setFailed('It looks like there are formatting errors'); | ||
- name: Run clippy check | ||
id: cargoClippy | ||
shell: bash | ||
run: cargo clippy --package ${{ inputs.package }} --all-features -- -D warnings | ||
- name: Notify fmt check | ||
if: failure() && steps.cargoClippy.outcome == 'failure' | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const message = `👋 It looks like your code has some linting issues. | ||
Please run \`cargo clippy --fix\` and push the code again.`; | ||
await github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: message, | ||
}); | ||
core.setFailed('It looks like there are linting errors'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Check Lambda Events | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'lambda-events/**' | ||
pull_request: | ||
paths: | ||
- 'lambda-events/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
toolchain: | ||
- "1.62.0" # Current MSRV | ||
- stable | ||
env: | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build events | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: aws_lambda_events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Check Lambda Runtime | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'lambda-runtime-api-client/**' | ||
- 'lambda-extension/**' | ||
|
||
pull_request: | ||
paths: | ||
- 'lambda-runtime-api-client/**' | ||
- 'lambda-extension/**' | ||
|
||
|
||
jobs: | ||
build-runtime: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.62.0" # Current MSRV | ||
- stable | ||
env: | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Runtime API Client | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: lambda_runtime_api_client | ||
|
||
- name: Build Extensions runtime | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: lambda-extension | ||
|
||
- name: Check examples | ||
working-directory: examples | ||
shell: bash | ||
run: ./check-examples.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Check Lambda Runtime | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'lambda-runtime-api-client/**' | ||
- 'lambda-runtime/**' | ||
- 'lambda-http/**' | ||
|
||
pull_request: | ||
paths: | ||
- 'lambda-runtime-api-client/**' | ||
- 'lambda-runtime/**' | ||
- 'lambda-http/**' | ||
|
||
jobs: | ||
build-runtime: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.62.0" # Current MSRV | ||
- stable | ||
env: | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Runtime API Client | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: lambda_runtime_api_client | ||
|
||
- name: Build Functions runtime | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: lambda_runtime | ||
|
||
- name: Build HTTP layer | ||
uses: ./.github/actions/rust-build | ||
with: | ||
package: lambda_http | ||
|
||
- name: Check examples | ||
working-directory: examples | ||
shell: bash | ||
run: ./check-examples.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.