1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Merge pull request #238 from grayed/tests

Tests tweaks
This commit is contained in:
Igor Chubin
2020-10-12 13:46:01 +02:00
committed by GitHub
2 changed files with 21 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Ubuntu Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: pip3 install -r requirements.txt
- name: run tests
run: bash tests/run-tests.sh
+2 -6
View File
@@ -85,7 +85,7 @@ while read -r number test_line; do
eval "curl -s $CHTSH_URL/$test_line" > "$TMP"
fi
if ! diff -u3 --color=always results/"$number" "$TMP" > "$TMP2"; then
if ! diff -u3 results/"$number" "$TMP" > "$TMP2"; then
if [[ $update_tests_results = NO ]]; then
if [ "$show_details" = YES ]; then
cat "$TMP2"
@@ -109,8 +109,4 @@ else
echo TESTS/OK/UPDATED "$i/$((i-failed))/$failed"
fi
if [ "$failed" != 0 ]; then
exit 1
else
exit 0
fi
test $failed -eq 0