Skip to content

Merge pull request #9 from devandapaige/cursor/add-spotify-embed-and-… #54

Merge pull request #9 from devandapaige/cursor/add-spotify-embed-and-…

Merge pull request #9 from devandapaige/cursor/add-spotify-embed-and-… #54

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install --save-dev eslint-config-next@latest
- name: Verify ESLint configuration
run: npx eslint --print-config .eslintrc.json
- name: Lint
run: npm run lint
- name: Run tests
run: npm test
- name: Build
run: npm run build
security-scan:
runs-on: ubuntu-latest
needs: build-and-test
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run npm audit
run: npm audit