File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # AWS Example SAM Deploy: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/deploying-using-github.html
2
+ # Cargo Lambda example: https://www.cargo-lambda.info/guide/getting-started.html#github-actions
3
+ name : Deploy Lambda
1
4
on :
2
5
push :
3
6
branches :
4
7
- main
8
+ paths :
9
+ - ' **/src/**'
10
+ - ' **/Cargo.toml'
5
11
jobs :
6
12
sam-deploy :
7
13
runs-on : ubuntu-latest
12
18
uses : dtolnay/rust-toolchain@stable
13
19
with :
14
20
targets : aarch64-unknown-linux-gnu
21
+ - name : Run tests
22
+ run : cargo test --release --features lambda
15
23
- name : Install Zig toolchain
16
24
uses : korandoru/setup-zig@v1
17
25
with :
Original file line number Diff line number Diff line change
1
+ name : Test
2
+ on :
3
+ pull_request :
4
+ branches : main
5
+ paths :
6
+ - ' **/src/**'
7
+ - ' **/Cargo.toml'
8
+ jobs :
9
+ cargo-test :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - name : Install Rust toolchain
14
+ uses : dtolnay/rust-toolchain@stable
15
+ - name : Run tests
16
+ run : cargo test
Original file line number Diff line number Diff line change 1
1
# API Rust
2
2
3
+ [ ![ .github/workflows/test.yml] ( https://github.com/jifalops/api-rust/actions/workflows/test.yml/badge.svg )] ( https://github.com/jifalops/api-rust/actions/workflows/test.yml )
4
+
5
+ [ ![ .github/workflows/deploy_lambda.yml] ( https://github.com/jifalops/api-rust/actions/workflows/deploy_lambda.yml/badge.svg )] ( https://github.com/jifalops/api-rust/actions/workflows/deploy_lambda.yml )
6
+
3
7
A template repo for building a Rust/Axum API using a dev-container.
4
8
5
9
## Deploy
You can’t perform that action at this time.
0 commit comments