mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-24 15:44:32 +00:00
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
This commit is contained in:
parent
2034f767ea
commit
df322564d0
1 changed files with 38 additions and 0 deletions
38
.github/workflows/libevm-delta.yml
vendored
Normal file
38
.github/workflows/libevm-delta.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
name: libevm delta
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ libevm ]
|
||||
pull_request:
|
||||
branches: [ libevm ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
diffs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # everything
|
||||
fetch-tags: true
|
||||
|
||||
- name: Color-blindness a11y
|
||||
run: | # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
|
||||
git config color.diff.old "#DC3220";
|
||||
git config color.diff.new "#005AB5";
|
||||
|
||||
- name: git diff libevm-base
|
||||
run: |
|
||||
git diff --diff-filter=a --word-diff --unified=0 --color=always \
|
||||
libevm-base \
|
||||
':(exclude).golangci.yml' \
|
||||
':(exclude).github/**';
|
||||
|
||||
- name: git diff libevm-base..libevm
|
||||
run: |
|
||||
git checkout libevm --;
|
||||
git diff --diff-filter=a --word-diff --unified=0 --color=always \
|
||||
libevm-base \
|
||||
':(exclude).golangci.yml' \
|
||||
':(exclude).github/**';
|
||||
|
||||
Loading…
Reference in a new issue