Test website for regressions #982
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test website for regressions | |
on: | |
schedule: | |
- cron: "0 01,13 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- uses: php-actions/composer@v6 | |
- name: Test if microformat 2 looks the same on live page. | |
# To create new output if anything changes run: | |
# composer install && php tests/mf2_regression_test/fetch_mf2.php > \ | |
# tests/mf2_regression_test/mf2.json.spec | |
shell: bash | |
run: | | |
diff <(php tests/mf2_regression_test/fetch_mf2.php) \ | |
tests/mf2_regression_test/mf2.json.spec |