Skip to content

fix: move sign_up and sign_in logic from router to service. Use enum … #13

fix: move sign_up and sign_in logic from router to service. Use enum …

fix: move sign_up and sign_in logic from router to service. Use enum … #13

Workflow file for this run

# AWS Example SAM Deploy: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/deploying-using-github.html
# Cargo Lambda example: https://www.cargo-lambda.info/guide/getting-started.html#github-actions
name: Deploy Lambda
on:
push:
branches:
- main
paths:
- '**/src/**'
- '**/Cargo.toml'
jobs:
sam-deploy:
runs-on: ubuntu-latest
if: ${{ vars.DEPLOY_LAMBDA == 'true' }}
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-gnu
- name: Run tests
run: cargo test --release --features lambda
- name: Install Zig toolchain
uses: korandoru/setup-zig@v1
with:
zig-version: 0.13.0
- name: Install Cargo Lambda
uses: jaxxstorm/[email protected]
with:
repo: cargo-lambda/cargo-lambda
platform: linux
arch: x86_64
- run: cargo lambda build --release --features lambda --arm64
- uses: aws-actions/setup-sam@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.AWS_REGION }}
- run: |
cd deploy/aws_sam
sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --parameter-overrides RustLog="${{ vars.RUST_LOG }}" PostgresUri="${{ secrets.POSTGRES_URI }}"