Skip to content

Commit

Permalink
replace travis with Github Actions (bitcoin#1432)
Browse files Browse the repository at this point in the history
replace travis with Github Actions
  • Loading branch information
kallewoof authored Mar 9, 2023
1 parent 4e4db8b commit ebea569
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/github-action-checks.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions scripts/diffcheck.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ebea569

Please sign in to comment.