Skip to content

modify runtime

modify runtime #10

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Update Roster
run: npm run updateRoster
- name: Run unit tests
run: npm run test:cov
- name: Run e2e tests
run: npm run test:e2e
- name: Build the project
run: npm run build
- name: Deploy to AWS Lambda
run: npx serverless deploy --stage prod
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}