mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 21:54:30 +00:00
* 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
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
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/**';
|
|
|