Skip to content

Commit

Permalink
chore: update tests to use site-generator-beta
Browse files Browse the repository at this point in the history
the site-generator-beta is the new aep website.
Use that in CI instead of the old one.
  • Loading branch information
toumorokoshi committed Oct 29, 2024
1 parent 39e5180 commit 9bb508d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 32 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/publish.yaml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: python:3.8
container: node:20
steps:
- uses: actions/checkout@v3
- name: Install the site-generator
run: pip install -r requirements.txt
- name: Build the site.
run: aep-site-gen . /out
- name: Generate all static pages, and build site.
run: ./scripts/build.sh
18 changes: 18 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -x
export AEP_LOCATION="${PWD}"
export SG_DIRECTORY="/tmp/site-generator-beta"
AEP_LINTER_LOC="${SG_DIRECTORY}/api-linter"
if [ ! -d "${SG_DIRECTORY}" ]; then
git clone https://github.com/aep-dev/site-generator-beta.git "${SG_DIRECTORY}"
fi

if [ ! -d "${AEP_LINTER_LOC}" ]; then
git clone https://github.com/aep-dev/api-linter.git "${AEP_LINTER_LOC}"
fi
cd "${SG_DIRECTORY}" || exit
# make rules / website folder
mkdir -p src/content/docs/tooling/linter/rules
mkdir -p src/content/docs/tooling/website
npm install
npm run generate
4 changes: 4 additions & 0 deletions scripts/serve.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -x
. ./scripts/build.sh
npm run preview

0 comments on commit 9bb508d

Please sign in to comment.