5a78e45c89
the `record_expected_output` script now uses the `act` utility (https://github.com/nektos/act) to run this repo's action in a container as github actions would. You can now pass one argument to that, `local`, to go back to running `github-pages` on your local ruby install. (I removed the `.ruby-version` file since we don't *need* to record using the local env anymore, so make sure that you're on Ruby 2.7.4) This eliminates the inconsistency between recorded output and generated output on actions, so we don't need to ignore any lines in `diff` anymore.
15 lines
378 B
Bash
Executable File
15 lines
378 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
if [ "local" = "$1" ]; then
|
|
export JEKYLL_ENV=production
|
|
export PAGES_REPO_NWO=actions/jekyll-build-pages
|
|
export JEKYLL_BUILD_REVISION=JEKYLL_BUILD_REVISION
|
|
|
|
for dir in $(ls test_projects)
|
|
do
|
|
bundle exec github-pages build --verbose -s test_projects/$dir -d test_projects/$dir/_expected
|
|
done
|
|
else
|
|
act -b -s GITHUB_TOKEN -j record-expected-output
|
|
fi
|