* 🚀 refactor: simplify deployment process in workflow file * 🚀 chore: add IMAGE_NAME to GITHUB_ENV for deployment workflow * ✨ chore: simplify deployment logging in workflow file * 🚀 fix: correct container name in deployment script logic * 🚀 refactor: rename job and streamline deployment steps * Update README.md * ✨ fix: prevent multiple form submissions in Contact component * ✨ feat: honeypot and timestamp checks to form submission * ✨ refactor: simplify contact form and improve UI elements * ✨ feat: add responsive masonry layout for projects display * ✨ style: Update project title size and improve layout visibility * ✨ fix: remove unnecessary test assertions and improve act usage * ✨ chore: add @types/react-responsive-masonry package fixing with this import error on building * ✨ chore: remove unused dev dependencies from package-lock.json * ✨ refactor: update environment variable usage and add caching * ✨ refactor: update environment variables and dependencies * ✨ chore: streamline Dockerfile and remove redundant steps
68 lines
1.4 KiB
YAML
68 lines
1.4 KiB
YAML
name: Test Code Base
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- production
|
|
- dev
|
|
- preview
|
|
paths:
|
|
- 'app/**'
|
|
- 'public/**'
|
|
- 'styles/**'
|
|
- 'Dockerfile'
|
|
- 'docker-compose.yml'
|
|
- '.github/workflows/**'
|
|
- 'next.config.ts'
|
|
- 'package.json'
|
|
- 'package-lock.json'
|
|
- 'tsconfig.json'
|
|
- 'tailwind.config.ts'
|
|
pull_request:
|
|
branches:
|
|
- production
|
|
- dev
|
|
- preview
|
|
paths:
|
|
- 'app/**'
|
|
- 'public/**'
|
|
- 'styles/**'
|
|
- 'Dockerfile'
|
|
- 'docker-compose.yml'
|
|
- '.github/workflows/**'
|
|
- 'next.config.ts'
|
|
- 'package.json'
|
|
- 'package-lock.json'
|
|
- 'tsconfig.json'
|
|
- 'tailwind.config.ts'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.14.0
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Create .env File
|
|
run: |
|
|
cat > .env <<EOF
|
|
NEXT_PUBLIC_BASE_URL=${{ vars.NEXT_PUBLIC_BASE_URL }}
|
|
GHOST_API_URL=${{ vars.GHOST_API_URL }}
|
|
GHOST_API_KEY=${{ secrets.GHOST_API_KEY }}
|
|
MY_EMAIL=${{ vars.MY_EMAIL }}
|
|
MY_PASSWORD=${{ secrets.MY_PASSWORD }}
|
|
EOF
|
|
echo ".env file created:" && cat .env
|
|
|
|
- name: Run Tests
|
|
run: npm run test
|