Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test Pull Request

on:
# Runs on pull requests
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Basic permissions for testing
permissions:
contents: read

env:
BUILD_PATH: "." # default value when not using subfolders

jobs:
test:
name: Test Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: ${{ env.BUILD_PATH }}

- name: Create environment file
run: |
echo "PUBLIC_STRAPI_URL=${{ secrets.PUBLIC_STRAPI_URL }}" >> .env
echo "PUBLIC_STORE_SLUG=${{ secrets.PUBLIC_STORE_SLUG }}" >> .env
echo "PUBLIC_POSTHOG_KEY=${{ secrets.PUBLIC_POSTHOG_KEY }}" >> .env
echo "PUBLIC_URL=https://sell.markket.place" >> .env
working-directory: ${{ env.BUILD_PATH }}

- name: Test Build with Astro
run: |
npm run build
working-directory: ${{ env.BUILD_PATH }}

- name: Test build output
run: |
if [ -d "dist" ]; then
echo "✅ Build successful - dist folder created"
ls -la dist/
else
echo "❌ Build failed - no dist folder found"
exit 1
fi
working-directory: ${{ env.BUILD_PATH }}
8 changes: 6 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from "@tailwindcss/vite";
import react from '@astrojs/react';

// https://astro.build/config
export default defineConfig({
site: 'https://sell.markket.place',
// Remove base path since you're using a custom domain
integrations: [react()],
vite: {
plugins: [tailwindcss()],
},
});
20 changes: 20 additions & 0 deletions features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Features

Astro template for Markket storefronts

## 2025

### September

- [ ] Display receipt page
- [ ] Display products list, component, index page, pagination
- [ ] Display individual product
- [ ] Display individual page
- [ ] Display individual article
- [ ] Display pages list, component, index page
- [ ] Display articles list, component, index page, pagination
- [x] Layout, with SEO components, postghog
- [x] Github action build scripts
- [x] homepage structure
- [x] Cafecito, connects with markket api
- [x] Astro build and configuration
Loading