Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Diff HTML pages

# Triggers the workflow on push or pull requests
on:
push:
pull_request:

jobs:
diff:
runs-on: ubuntu-latest

steps:
# check out base ref and build site into old/
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.base.sha }}
- run: composer install
- run: vendor/bin/sculpin generate --output-dir=old

# check out head ref and build site into new/
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
clean: false # Prevent removing files in old/
- run: composer install
- run: vendor/bin/sculpin generate --output-dir=new

# Diff between old and new
- name: Diff between old and new
run: diff -r -u --color=always old new || true