Skip to content

Commit

Permalink
fix: double build, extract plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Sep 29, 2023
1 parent 0eb10b2 commit b70eb99
Show file tree
Hide file tree
Showing 9 changed files with 1,104 additions and 1,292 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/checkout-test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,33 +92,6 @@ jobs:
export NODE_OPTIONS="--max-old-space-size=8096"
pnpm run test
test-build:
name: Test build
runs-on: ubuntu-latest
timeout-minutes: 60
needs: embed-docs
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Prepare
uses: ./.github/actions/checkout-install
with:
apt: true

- uses: actions/download-artifact@v3
with:
name: embed-${{ github.sha }}

- name: Unzip artifact
run: |
unzip -o embed.zip
- name: Test
run: |
export NODE_OPTIONS="--max-old-space-size=8096"
pnpm run test:build
build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -168,6 +141,32 @@ jobs:
# name: db-external-${{ github.sha }}
# path: external/db-external.zip

test-build:
name: Test build
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- embed-docs
- build
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: full-build-${{ github.sha }}

- name: Unzip artifact
run: |
mkdir -p .vitepress/dist
unzip -o full-build.zip
ls -la .vitepress/dist
- name: Test
run: |
export NODE_OPTIONS="--max-old-space-size=8096"
pnpm run test:build
# chromatic:
# name: Deploy Storybook to Chromatic
# runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import type { Config as ThemeConfig } from "vitepress-shopware-docs";
import baseConfig from "vitepress-shopware-docs/config";
import ViteRequireContext from '@originjs/vite-plugin-require-context'
import {resolve} from "path";
import { MarkdownTransform } from "./plugins/markdownTransform";
import { CssCleanup } from "./plugins/cssCleanup";
import { MarkdownTransform } from "../node_modules/@shopware-docs/vitepress/src/plugins/markdownTransform";
import { CssCleanup } from "../node_modules/@shopware-docs/vitepress/src/plugins/cssCleanup";
import Inspect from "vite-plugin-inspect";
import { withMermaid } from "vitepress-plugin-mermaid";

import {copyAdditionalAssets, createSitemap, storeRedirects} from "./helpers";
import {copyAdditionalAssets, createSitemap, storeRedirects} from "../node_modules/@shopware-docs/vitepress/src/helpers";
import {generateMarkdownFromStoplight, getStoplightUrls} from "./helpers/stoplight";
import navigation from "./navigation";

Expand Down
223 changes: 0 additions & 223 deletions .vitepress/helpers.ts

This file was deleted.

43 changes: 0 additions & 43 deletions .vitepress/plugins/cssCleanup.ts

This file was deleted.

Loading

0 comments on commit b70eb99

Please sign in to comment.