Skip to content

Commit

Permalink
Updated steps order in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 7, 2025
1 parent 7e3f58e commit 4b8ada3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 4b8ada3

Please sign in to comment.