Skip to content

Moved tests.

Moved tests. #10

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- 'feature/**'
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint
uses: luizm/action-sh-checker@v0.8.0
env:
SHFMT_OPTS: -i 2 -ci -s -d
- uses: actions/setup-node@v4
- 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
- run: npm --prefix=tests ci
- run: kcov --include-pattern=.sh,.bash --bash-parse-files-in-dir=. --exclude-pattern=vendor,node_modules,coverage $(pwd)/coverage ./tests/node_modules/.bin/bats tests
- uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ./coverage
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: ./coverage
fail_ci_if_error: true