Skip to content

Commit fafcd2e

Browse files
author
MarcoFalke
committed
ci: Add test-each-commit task
1 parent 6f03c45 commit fafcd2e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ env:
2323
MAKEJOBS: '-j10'
2424

2525
jobs:
26+
test-each-commit:
27+
name: 'test each commit'
28+
runs-on: ubuntu-22.04
29+
if: github.event_name == 'pull_request'
30+
timeout-minutes: 360 # Use maximum time, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
31+
steps:
32+
- uses: actions/checkout@v3
33+
with:
34+
ref: ${{ github.event.pull_request.head.sha }}
35+
fetch-depth: '0'
36+
- run: git checkout HEAD~ # Skip the top commit, because it is already checked by the other tasks.
37+
- run: sudo apt install ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
38+
- run: EDITOR=true git rebase --interactive --exec "./autogen.sh && CC=clang CXX=clang++ ./configure && make clean && make -j $(nproc) check && ./test/functional/test_runner.py -j $(( $(nproc) * 2 ))" $( git log --merges -1 --format='%H' )
39+
2640
macos-native-x86_64:
2741
name: 'macOS 13 native, x86_64, no depends, sqlite only, gui'
2842
# Use latest image, but hardcode version to avoid silent upgrades (and breaks).

0 commit comments

Comments
 (0)