Skip to content

Commit df32256

Browse files
authored
chore: workflow to print diffs vs libevm-base tag (#18)
* chore: workflow to print diffs vs `libevm-base` tag * fix: job name * fix: use `${{ github.ref_name }}` instead of `HEAD` * fix: use `github.sha` instead of `github.ref_name` * fix: `fetch-tags: true` * chore: fml * fix: `fetch-depth: 0` for more than just 1 commit * fix: check out branch before performing diff * chore: `set -x` to aid debugging * fix: add `--` suffix to `git checkout` * fix: use `github.ref_name` instead of `github.sha` * refactor: move all actions inside workflow * fix: use `github.ref` for full name * fix: only use explicit diff for `libevm` * chore: `git diff --color=always` * feat: color-blindness a11y
1 parent 2034f76 commit df32256

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/libevm-delta.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: libevm delta
2+
3+
on:
4+
push:
5+
branches: [ libevm ]
6+
pull_request:
7+
branches: [ libevm ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
diffs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0 # everything
17+
fetch-tags: true
18+
19+
- name: Color-blindness a11y
20+
run: | # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
21+
git config color.diff.old "#DC3220";
22+
git config color.diff.new "#005AB5";
23+
24+
- name: git diff libevm-base
25+
run: |
26+
git diff --diff-filter=a --word-diff --unified=0 --color=always \
27+
libevm-base \
28+
':(exclude).golangci.yml' \
29+
':(exclude).github/**';
30+
31+
- name: git diff libevm-base..libevm
32+
run: |
33+
git checkout libevm --;
34+
git diff --diff-filter=a --word-diff --unified=0 --color=always \
35+
libevm-base \
36+
':(exclude).golangci.yml' \
37+
':(exclude).github/**';
38+

0 commit comments

Comments
 (0)