This commit is contained in:
Franjo Mindek
2025-09-18 11:42:49 +02:00
parent 054c1f8dc5
commit 3f463fb202
155 changed files with 4138 additions and 2994 deletions

2
.github/FUNDING.yml vendored
View File

@@ -1,6 +1,6 @@
# These are supported funding model platforms
github: [ wasp-lang ] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [wasp-lang] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username

View File

@@ -5,12 +5,12 @@ on:
branches:
- main
paths:
- 'opensaas-sh/blog/**'
- "opensaas-sh/blog/**"
pull_request:
branches:
- main
paths:
- 'opensaas-sh/blog/**'
- "opensaas-sh/blog/**"
jobs:
build:
@@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version: "lts/*"
- name: Install dependencies
working-directory: ./opensaas-sh/blog
@@ -47,7 +47,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version: "lts/*"
- name: Install dependencies
working-directory: ./opensaas-sh/blog
@@ -64,10 +64,10 @@ jobs:
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2
with:
publish-dir: './opensaas-sh/blog/dist'
publish-dir: "./opensaas-sh/blog/dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

View File

@@ -24,7 +24,7 @@ jobs:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: "22"
- name: Docker setup
uses: docker/setup-buildx-action@v3
@@ -56,7 +56,7 @@ jobs:
run: |
./tools/patch.sh
- name: '[e2e-tests] Install Node.js dependencies for Playwright tests'
- name: "[e2e-tests] Install Node.js dependencies for Playwright tests"
if: steps.cache-e2e-tests.outputs.cache-hit != 'true'
working-directory: ./template
run: |
@@ -78,14 +78,14 @@ jobs:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ env.PLAYWRIGHT_VERSION }}-${{ runner.os }}
- name: '[e2e-tests] Set up Playwright'
- name: "[e2e-tests] Set up Playwright"
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
working-directory: ./template
run: |
cd e2e-tests
npx playwright install --with-deps
- name: '[e2e-tests] Install Stripe CLI'
- name: "[e2e-tests] Install Stripe CLI"
run: |
curl -s https://packages.stripe.dev/api/security/keypair/stripe-cli-gpg/public | gpg --dearmor | sudo tee /usr/share/keyrings/stripe.gpg
echo "deb [signed-by=/usr/share/keyrings/stripe.gpg] https://packages.stripe.dev/stripe-cli-debian-local stable main" | sudo tee -a /etc/apt/sources.list.d/stripe.list
@@ -95,13 +95,13 @@ jobs:
# For Stripe webhooks to work in development, we need to run the Stripe CLI to listen for webhook events.
# The Stripe CLI will receive the webhook events from Stripe test payments and
# forward them to our local server so that we can test the payment flow in our e2e tests.
- name: '[e2e-tests] Run Stripe CLI to listen for webhooks'
- name: "[e2e-tests] Run Stripe CLI to listen for webhooks"
env:
STRIPE_DEVICE_NAME: ${{ secrets.STRIPE_DEVICE_NAME }}
run: |
stripe listen --api-key ${{ secrets.STRIPE_KEY }} --forward-to localhost:3001/payments-webhook &
- name: '[e2e-tests] Run Playwright tests'
- name: "[e2e-tests] Run Playwright tests"
env:
# The e2e tests are testing parts of the app that need certain env vars, so we need to access them here.
# These secretes can be set in your GitHub repo settings, e.g. https://github.com/<account>/<repo>/settings/secrets/actions