8000 revert the files · ap-dev-github/atithidev-mongoose-api@723a840 · GitHub
[go: up one dir, main page]

Skip to content

revert the files

revert the files #130

Workflow file for this run

name: Deploy AWS Lambda with Serverless
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install npm dependencies
run: npm install
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Compile TypeScript
run: npm run build
- name: Run ESLint to check code quality
run: npm run lint
- name: Run Jest tests
run: npm test
- name: Install only production dependencies
run: npm ci --only=production
- name: Install Serverless Framework
run: |
npm install -g serverless@3.40.0
serverless --version # Debugging: Check installed version
<<<<<<< HEAD

Check failure on line 48 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
- name: Installing the prune Plugin
run: npm install serverless-prune-plugin
=======
- name: Installing the prune Plugin
run: npm install serverless-prune-plugin
>>>>>>> a7ef40fd6b2a683ef615bb2774725ee396af5841
- name: Create .env file
run: |
echo "API_ID=${{ secrets.API_ID }}" >> .env
echo "RESOURCE_ID=${{ secrets.RESOURCE_ID }}" >> .env
echo "MONGO_URI=${{ secrets.MONGO_URI }}" >> .env
echo "SERVERLESS_ACCESS_KEY=${{ secrets.SERVERLESS_ACCESS_KEY }}" >> .env
echo "MONGO_URI is set to $MONGO_URI" # Debugging: Print the MONGO_URI value
cat .env # Show file contents
<<<<<<< HEAD
- name: Manually Create Deployment ZIP
run: zip -r my_lambda.zip . -x "*.git*" "node_modules/*" ".serverless/*" "tests/*"
=======
>>>>>>> a7ef40fd6b2a683ef615bb2774725ee396af5841
- name: Deploy with Serverless
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
run: serverless deploy --verbose
0