go-ethereum/.github/workflows/libevm-delta.yml
Arran Schlosberg dc8fc0308d
chore: run workflows on PRs+push to release branches (#67)
## Why this should be merged

These workflows are required by branch protection for release branches,
but aren't run automatically so release PRs can't currently be merged.

## How this works

Extends the `branches` filters of necessary workflows.

## How this was tested

n/a
2024-10-29 07:29:27 +00:00

42 lines
1.3 KiB
YAML

name: libevm delta
on:
push:
branches: [ main, 'release/**' ]
pull_request:
branches: [ main, 'release/**' ]
workflow_dispatch:
jobs:
diffs:
env:
# Last commit on `renamed-go-module` branch to be merged into `main`
LIBEVM_BASE: a7f08d0e757d5a69d3e269c69dcea7e45bab97e3
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/**' \
':(exclude)README.md';
- name: git diff {LIBEVM_BASE}..main
run: |
git checkout main --;
git diff --diff-filter=a --word-diff --unified=0 --color=always \
"${LIBEVM_BASE}" \
':(exclude).golangci.yml' \
':(exclude).github/**' \
':(exclude)README.md';