-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e3f58e
commit 4b8ada3
Showing
1 changed file
with
6 additions
and
6 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 |
---|---|---|
|
@@ -40,9 +40,6 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Config Git user. | ||
run: git config --global user.name "Test user" && git config --global user.email "[email protected]" | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -58,18 +55,21 @@ jobs: | |
run: npm install | ||
|
||
- name: Install Kcov | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
KCOV_VERSION=v43 && \ | ||
sudo apt install -y git cmake g++ libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev binutils-dev && \ | ||
git clone https://github.com/SimonKagstrom/kcov.git && \ | ||
cd kcov && git checkout ${KCOV_VERSION} && mkdir build && cd build && \ | ||
cmake .. && make && sudo make install && \ | ||
kcov --version | ||
if: matrix.os == 'ubuntu-latest' | ||
- name: Run Tests and Code Coverage on Ubuntu | ||
- name: Config Git user for tests. | ||
run: git config --global user.name "Test user" && git config --global user.email "[email protected]" | ||
|
||
- name: Run tests | ||
if: matrix.os == 'ubuntu-latest' | ||
run: kcov --clean --include-pattern=.bash --bash-parse-files-in-dir=. --exclude-path=node_modules,vendor,coverage $(pwd)/coverage ./node_modules/.bin/bats tests | ||
run: kcov --clean --include-pattern=.bash --bash-parse-files-in-dir=. --exclude-path=node_modules,vendor,coverage "$(pwd)"/coverage ./node_modules/.bin/bats tests | ||
shell: bash | ||
|
||
- name: Upload coverage reports to Codecov | ||
|