Skip to content

Commit

Permalink
attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
andreciornavei committed Mar 5, 2024
1 parent 560bb8b commit 2301451
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,36 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

# Place directory on backend project codebase
- name: Select backend directory
uses: cd ../../backend

# This step sets up Node.js environment.
- name: Setup Node.js
working-directory: ${{ github.workspace }}/backend
uses: actions/setup-node@v3
if: success()

# This step installs the Serverless Framework globally.
- name: Install Serverless Framework
working-directory: ${{ github.workspace }}/backend
run: npm install -g serverless serverless-prune-plugin serverless-iam-roles-per-function
if: success()

# This step sets up PHP environment with the specified version.
- name: Setup PHP
working-directory: ${{ github.workspace }}/backend
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
if: success()

# This step installs Composer dependencies with the specified options.
- name: Install Composer dependencies
working-directory: ${{ github.workspace }}/backend
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --optimize-autoloader --no-dev"
if: success()

# This step deploys your application to AWS Lambda using the Serverless Framework.
- name: Deploy to AWS Lambda
working-directory: ${{ github.workspace }}/backend
uses: serverless/github-action@v3
with:
args: deploy --stage ${GITHUB_REF#refs/heads/} --region ${{ secrets.AWS_DEFAULT_REGION }} --verbose
Expand Down

0 comments on commit 2301451

Please sign in to comment.