-
maybe add lighthouse validation checking
In production (GitHub Actions), environment is setup by by workflows in .github/workflows/.
For local testing (try VS Code + Dev Containers extension, Podman Desktop), these steps are performed by .devcontainer/ when you run Reopen in Container.
-
Install Ruby (use version in build-test-deploy.yml in "Setup Ruby", (try rbenv)
-
Install Jekyll
gem update --system gem install bundler bundle install
-
Install Node & yarn, use version in build-test-publish.yml in "Setup Node.js", (try nvm)
nvm use 'lts/*' yarn install
Note: if you want to install GitHub Copilot, use always-installed extensions rather than editing your site config.
Build the HTML website (see available localhost:#### port in the console output):
bundle exec jekyll build
bundle exec jekyll serve
You can run PHP or similar on the built site. Here's how.
(cd build; php -S localhost:4001)
All testing is performed using Node scripts:
yarn run test