mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
replace travis with Github Actions (#1432)
replace travis with Github Actions
This commit is contained in:
parent
4e4db8ba12
commit
ebea569f19
19
.github/workflows/github-action-checks.yml
vendored
Normal file
19
.github/workflows/github-action-checks.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: GitHub Actions Check
|
||||||
|
run-name: ${{ github.actor }} Checks 🚀
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
Link-Format-Checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: scripts/link-format-chk.sh
|
||||||
|
Build-Table-Checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
||||||
|
Diff-Checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: scripts/diffcheck.sh
|
@ -1,7 +0,0 @@
|
|||||||
os: linux
|
|
||||||
language: generic
|
|
||||||
script:
|
|
||||||
- scripts/link-format-chk.sh
|
|
||||||
- scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
|
||||||
- diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
|
|
||||||
- if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true; newdiff=$(diff -s /tmp/before.diff /tmp/after.diff -u | grep '^+'); if [ -n "$newdiff" ]; then echo "$newdiff"; exit 1; fi; else echo 'Cannot build previous commit table for comparison'; fi
|
|
13
scripts/diffcheck.sh
Executable file
13
scripts/diffcheck.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
|
||||||
|
if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then
|
||||||
|
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true
|
||||||
|
newdiff=$(diff -s /tmp/before.diff /tmp/after.diff -u | grep '^+')
|
||||||
|
if [ -n "$newdiff" ]; then
|
||||||
|
echo "$newdiff"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo 'Cannot build previous commit table for comparison'
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user