Skip to content

Commit d754c8f

Browse files
authored
Merge pull request #1 from calimania/feat/pages
Using Base Layout, homepage content
2 parents 71b2c9a + a9b939e commit d754c8f

File tree

13 files changed

+3415
-448
lines changed

13 files changed

+3415
-448
lines changed

.github/workflows/test_pr.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Test Pull Request
2+
3+
on:
4+
# Runs on pull requests
5+
pull_request:
6+
branches: ["main"]
7+
types: [opened, synchronize, reopened]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Basic permissions for testing
13+
permissions:
14+
contents: read
15+
16+
env:
17+
BUILD_PATH: "." # default value when not using subfolders
18+
19+
jobs:
20+
test:
21+
name: Test Build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "20"
31+
cache: npm
32+
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
working-directory: ${{ env.BUILD_PATH }}
37+
38+
- name: Create environment file
39+
run: |
40+
echo "PUBLIC_STRAPI_URL=${{ secrets.PUBLIC_STRAPI_URL }}" >> .env
41+
echo "PUBLIC_STORE_SLUG=${{ secrets.PUBLIC_STORE_SLUG }}" >> .env
42+
echo "PUBLIC_POSTHOG_KEY=${{ secrets.PUBLIC_POSTHOG_KEY }}" >> .env
43+
echo "PUBLIC_URL=https://sell.markket.place" >> .env
44+
working-directory: ${{ env.BUILD_PATH }}
45+
46+
- name: Test Build with Astro
47+
run: |
48+
npm run build
49+
working-directory: ${{ env.BUILD_PATH }}
50+
51+
- name: Test build output
52+
run: |
53+
if [ -d "dist" ]; then
54+
echo "✅ Build successful - dist folder created"
55+
ls -la dist/
56+
else
57+
echo "❌ Build failed - no dist folder found"
58+
exit 1
59+
fi
60+
working-directory: ${{ env.BUILD_PATH }}

astro.config.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
3+
import tailwindcss from "@tailwindcss/vite";
4+
import react from '@astrojs/react';
35

4-
// https://astro.build/config
56
export default defineConfig({
67
site: 'https://sell.markket.place',
7-
// Remove base path since you're using a custom domain
8+
integrations: [react()],
9+
vite: {
10+
plugins: [tailwindcss()],
11+
},
812
});

features.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Features
2+
3+
Astro template for Markket storefronts
4+
5+
## 2025
6+
7+
### September
8+
9+
- [ ] Display receipt page
10+
- [ ] Display products list, component, index page, pagination
11+
- [ ] Display individual product
12+
- [ ] Display individual page
13+
- [ ] Display individual article
14+
- [ ] Display pages list, component, index page
15+
- [ ] Display articles list, component, index page, pagination
16+
- [x] Layout, with SEO components, postghog
17+
- [x] Github action build scripts
18+
- [x] homepage structure
19+
- [x] Cafecito, connects with markket api
20+
- [x] Astro build and configuration

0 commit comments

Comments
 (0)