File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212jobs :
1313 compare :
14- runs-on : ubuntu-latest
14+ runs-on : macos-latest
15+ env :
16+ YDIFF_OPTIONS : " --side-by-side --pager=cat --color=always --width=120 --nowrap"
1517
1618 steps :
1719 - name : Check out repo
2224 with :
2325 python-version : " 3.11"
2426
27+ - name : Install `ydiff` # https://github.com/ymattw/ydiff
28+ run : brew install ydiff
29+
2530 - name : Download remote text file
2631 run : |
2732 curl -L https://gist.githubusercontent.com/joshuacwnewton/3c554bf27111cf0020e5c124b66448c4/raw/ff08cbcf7738941008eca0fa54e024d98eea24e8/gistfile1.txt -o remote.txt
4348 - name : Diff commands
4449 run : |
4550 echo "🔍 Diffing remote vs local..."
46- diff -u local_cmds_sorted.txt remote_cmds_sorted.txt || true
51+ diff -u local_cmds_sorted.txt remote_cmds_sorted.txt > diff.txt || true
52+ ydiff < $DIFF_FILE
4753
4854 - name : Upload results as artifacts
4955 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments