Updated versions and text #16
Workflow file for this run
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: Diff builds on Pull Requests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
diff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: (main) Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: (main) Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'npm' | |
- name: (main) Install npm | |
run: npm ci | |
- name: (main) Run eleventy | |
run: npm run build | |
- name: (main) Move build | |
run: mv build ${{ runner.temp }}/build_main | |
- name: (HEAD) Checkout repository | |
uses: actions/checkout@v4 | |
- name: (HEAD) Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'npm' | |
- name: (HEAD) Install npm | |
run: npm ci | |
- name: (HEAD) Run eleventy | |
run: npm run build | |
- name: (HEAD) Compare builds | |
run: diff -r ${{ runner.temp }}/build_main build |