Skip to content

Commit ebea569

Browse files
authored
replace travis with Github Actions (bitcoin#1432)
replace travis with Github Actions
1 parent 4e4db8b commit ebea569

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: GitHub Actions Check
2+
run-name: ${{ github.actor }} Checks 🚀
3+
on: [push, pull_request]
4+
jobs:
5+
Link-Format-Checks:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- run: scripts/link-format-chk.sh
10+
Build-Table-Checks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
15+
Diff-Checks:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- run: scripts/diffcheck.sh

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/diffcheck.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
4+
if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then
5+
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true
6+
newdiff=$(diff -s /tmp/before.diff /tmp/after.diff -u | grep '^+')
7+
if [ -n "$newdiff" ]; then
8+
echo "$newdiff"
9+
exit 1
10+
fi
11+
else
12+
echo 'Cannot build previous commit table for comparison'
13+
fi

0 commit comments

Comments
 (0)