mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
GitHub Actions: Pass -e to test scripts
This ensures that the script will exit with an error code if any line of the script fails
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -23,9 +23,9 @@ jobs:
|
|||||||
- name: Make
|
- name: Make
|
||||||
run: make
|
run: make
|
||||||
- name: CLI tests
|
- name: CLI tests
|
||||||
run: bash -x ./test_script.sh
|
run: bash -e -x ./test_script.sh
|
||||||
- name: SQL tests
|
- name: SQL tests
|
||||||
run: bash -x ./test_sql.sh
|
run: bash -e -x ./test_sql.sh
|
||||||
- name: ODBC tests
|
- name: ODBC tests
|
||||||
run: env MDBPATH=test/data ./src/odbc/unittest
|
run: env MDBPATH=test/data ./src/odbc/unittest
|
||||||
- name: pkg-config libmdb test
|
- name: pkg-config libmdb test
|
||||||
@@ -55,9 +55,9 @@ jobs:
|
|||||||
- name: Make
|
- name: Make
|
||||||
run: make
|
run: make
|
||||||
- name: CLI tests
|
- name: CLI tests
|
||||||
run: bash -x ./test_script.sh
|
run: bash -e -x ./test_script.sh
|
||||||
- name: SQL tests
|
- name: SQL tests
|
||||||
run: bash -x ./test_sql.sh
|
run: bash -e -x ./test_sql.sh
|
||||||
- name: ODBC tests
|
- name: ODBC tests
|
||||||
run: env MDBPATH=test/data ./src/odbc/unittest
|
run: env MDBPATH=test/data ./src/odbc/unittest
|
||||||
- name: pkg-config libmdb test
|
- name: pkg-config libmdb test
|
||||||
@@ -104,6 +104,6 @@ jobs:
|
|||||||
- name: Make
|
- name: Make
|
||||||
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && make'
|
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && make'
|
||||||
- name: Test
|
- name: Test
|
||||||
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && ./test_script.sh'
|
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && bash -e -x ./test_script.sh'
|
||||||
- name: SQL Test
|
- name: SQL Test
|
||||||
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && ./test_sql.sh'
|
run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && bash -e -x ./test_sql.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user