-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce basic CI support Closes #17 No functional change
- Loading branch information
1 parent
a7288b3
commit 10c29d9
Showing
3 changed files
with
33 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Pawn tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- ci | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Building and testing pawn | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Extract bench signature | ||
run: "git log HEAD | grep 'Bench: ' | head -n 1 | awk '{print $2}' > bench.sig" | ||
- name: Build pawn | ||
run: "make" | ||
- name: Run bench | ||
run: "build/pawn bench 2>&1 | grep 'Nodes searched:' | awk '{print $3}' > bench.out" | ||
- name: Verify bench signature | ||
run: "cmp bench.sig bench.out" | ||
- name: Run tests | ||
run: "build/pawn test | grep -q 'All tests passed'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters