Skip to content

Refactor IAM policy to allow access to Perplexity API key with wildcard for Secrets Manager #123

Refactor IAM policy to allow access to Perplexity API key with wildcard for Secrets Manager

Refactor IAM policy to allow access to Perplexity API key with wildcard for Secrets Manager #123

Workflow file for this run

name: Backend Tests
on:
pull_request:
branches: [ main ]
paths:
- 'backend/**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './backend/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Run tests
run: npm test
- name: Generate test summary
if: always()
run: |
echo "# Backend Test Results" >> $GITHUB_STEP_SUMMARY
if [ ${{ job.status }} == "success" ]; then
echo "✅ All tests passed successfully!" >> $GITHUB_STEP_SUMMARY
else
echo "❌ Some tests failed. Please check the logs for details." >> $GITHUB_STEP_SUMMARY
fi