Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
s4nt14go committed Mar 2, 2024
1 parent 3a293b4 commit 41a9fb4
Show file tree
Hide file tree
Showing 7 changed files with 7,974 additions and 5,208 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ jobs:
AWS_REGION: us-east-1

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: '12'
Expand All @@ -35,18 +31,3 @@ jobs:
export AWS_SECRET_ACCESS_KEY=`echo $CREDS | jq -r '.Credentials.SecretAccessKey'`
export AWS_SESSION_TOKEN=`echo $CREDS | jq -r '.Credentials.SessionToken'`
npm run sls -- deploy
- name: integration tests
run: |
CREDS=`aws sts assume-role --role-arn arn:aws:iam::$DEPLOYMENT_ACCOUNT:role/ci-role --role-session-name=ci_user`
export AWS_ACCESS_KEY_ID=`echo $CREDS | jq -r '.Credentials.AccessKeyId'`
export AWS_SECRET_ACCESS_KEY=`echo $CREDS | jq -r '.Credentials.SecretAccessKey'`
export AWS_SESSION_TOKEN=`echo $CREDS | jq -r '.Credentials.SessionToken'`
npm run dotEnv
npm t
- name: e2e tests
run: |
CREDS=`aws sts assume-role --role-arn arn:aws:iam::$DEPLOYMENT_ACCOUNT:role/ci-role --role-session-name=ci_user`
export AWS_ACCESS_KEY_ID=`echo $CREDS | jq -r '.Credentials.AccessKeyId'`
export AWS_SECRET_ACCESS_KEY=`echo $CREDS | jq -r '.Credentials.SecretAccessKey'`
export AWS_SESSION_TOKEN=`echo $CREDS | jq -r '.Credentials.SessionToken'`
npm run acceptance
6 changes: 1 addition & 5 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ jobs:
AWS_REGION: us-east-1

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: '12'
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/santiago1.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ Place orders and accept/reject them done with Serverless Framework using AWS Lam

#### Deployment instructions

1. Use Node 12 version as in lambdas and [pipeline](.github/workflows), using [nvm](https://github.com/nvm-sh/nvm) you can:
1. Use Node 20 version, using [nvm](https://github.com/nvm-sh/nvm) you can:

```
# set Node 12 in current terminal
nvm use 12
# set Node 12 as default (new terminals will use 12)
nvm alias default 12
# set Node 20 in current terminal
nvm use 20
# set Node 20 as default (new terminals will use 20)
nvm alias default 20
```

1. Install dependencies and deploy on your stage (provided you configured your AWS credentials)
Expand Down
Loading

0 comments on commit 41a9fb4

Please sign in to comment.