Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 7, 2025
1 parent a285788 commit 78b7e57
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/test-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,36 @@ jobs:
with:
node-version: 20

- name: Setup sh-checker
uses: luizm/action-sh-checker@v0.9.0
if: matrix.os == 'ubuntu-latest'
env:
SHFMT_OPTS: -i 2 -ci -s -d
# - name: Setup sh-checker
# uses: luizm/action-sh-checker@v0.9.0
# if: matrix.os == 'ubuntu-latest'
# env:
# SHFMT_OPTS: -i 2 -ci -s -d

- name: Install dependencies
run: npm install

- name: Install Kcov
run: wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz && tar -xf kcov-amd64.tar.gz && sudo mv ./usr/local/bin/kcov /usr/local/bin/kcov && kcov --version
if: matrix.os == 'ubuntu-latest'

- name: Run Tests and Code Coverage on Ubuntu
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
shell: bash

- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
directory: ./coverage
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Run Tests on other OSes
if: matrix.os != 'ubuntu-latest'
run: ./node_modules/.bin/bats tests
shell: bash
# - name: Install dependencies
# run: npm install
#
# - name: Install Kcov
# run: wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz && tar -xf kcov-amd64.tar.gz && sudo mv ./usr/local/bin/kcov /usr/local/bin/kcov && kcov --version
# if: matrix.os == 'ubuntu-latest'
#
# - name: Run Tests and Code Coverage on Ubuntu
# 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
# shell: bash
#
# - name: Upload coverage reports to Codecov
# if: matrix.os == 'ubuntu-latest'
# uses: codecov/codecov-action@v5
# with:
# directory: ./coverage
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}
#
# - name: Run Tests on other OSes
# if: matrix.os != 'ubuntu-latest'
# run: ./node_modules/.bin/bats tests
# shell: bash

- name: Setup tmate session
if: ${{ !cancelled() && github.event.inputs.enable_terminal }}
Expand Down

0 comments on commit 78b7e57

Please sign in to comment.