Skip to content

Commit 091ac9f

Browse files
committed
Add CI/CD pipeline and update README section title
Added a GitHub Actions workflow for continuous integration and deployment, including job definitions for build and deploy (commented out). Also, updated the "Clean" section title in README.md to "Clean And Build" to better reflect its content.
1 parent 28ea834 commit 091ac9f

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

.github/workflows/rust.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'v*' # This will match any branch starting with 'v'
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Check Rust version
23+
run: |
24+
rustc --version
25+
cargo --version
26+
27+
# - name: Set up Rust
28+
# uses: dtolnay/rust-toolchain@stable
29+
#
30+
# - name: Install Just
31+
# uses: extractions/setup-just@v1
32+
# with:
33+
# just-version: 1.5.0
34+
#
35+
# - name: Clean with lambdas
36+
# run: just clean-with-lambdas
37+
#
38+
# - name: Build with lambdas
39+
# run: just build-with-lambdas
40+
#
41+
# deploy:
42+
# runs-on: ubuntu-latest
43+
# needs: build
44+
#
45+
# steps:
46+
# - name: Checkout repository
47+
# uses: actions/checkout@v4
48+
#
49+
# - name: Set up Rust
50+
# uses: dtolnay/rust-toolchain@stable
51+
#
52+
# - name: Install Just
53+
# uses: extractions/setup-just@v1
54+
# with:
55+
# just-version: 1.5.0
56+
#
57+
# - name: Deploy to AWS
58+
# env:
59+
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
60+
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
61+
# AWS_DEFAULT_REGION: us-west-2
62+
# run: just deploy-drive-deposits-dynamodb-queries

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- [Querying with custom domain](#querying-with-custom-domain)
1616
- [Development Tool: cargo lambda](#development-tool-cargo-lambda)
1717
- [Development Tool: LocalStack](#development-tool-localstack)
18-
- [Clean](#clean)
18+
- [Clean And Build](#clean-and-build)
1919
- [Configurations for DriveDeposits](#configurations-for-drivedeposits)
2020
- [Member crates in workspace](#member-crates-in-workspace)
2121

@@ -461,7 +461,7 @@ Following is convenience so that in development can iterate faster:
461461

462462
[Back to Table of Contents](#table-of-contents)
463463

464-
### Clean
464+
### Clean And Build
465465

466466
cargo clean is used but since there are lambda we have .aws-sam folders created by sam also that we have a clean
467467

0 commit comments

Comments
 (0)