Skip to content

Commit f1593b4

Browse files
committed
Add test.
1 parent a51605a commit f1593b4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/scaffold-test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,25 @@ jobs:
5353
sudo chown "$USER" /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
5454
5555
- name: Install dependencies
56-
run: npm ci
57-
working-directory: .scaffold/tests
56+
run: composer install
5857

5958
- name: Run tests
60-
run: kcov --include-pattern=.sh,.bash --bash-parse-files-in-dir=. --exclude-pattern=vendor,node_modules,.scaffold-coverage-html,.scaffold "$(pwd)"/.scaffold-coverage-html .scaffold/tests/node_modules/.bin/bats .scaffold/tests/bats
59+
run: |
60+
composer run lint
61+
XDEBUG_MODE='coverage' && composer run test
6162
6263
- name: Upload coverage report as an artifact
6364
uses: actions/upload-artifact@v4
6465
with:
6566
name: ${{github.job}}-code-coverage-report
66-
path: ./.scaffold-coverage-html
67+
path: ./.scaffold/coverage-html
6768
if-no-files-found: error
6869

6970
- name: Upload coverage report to Codecov
7071
uses: codecov/codecov-action@v4
7172
if: ${{ env.CODECOV_TOKEN != '' }}
7273
with:
73-
directory: ./.scaffold-coverage-html
74+
directory: ./.scaffold/coverage-html
7475
fail_ci_if_error: true
7576
token: ${{ secrets.CODECOV_TOKEN }}
7677
env:

0 commit comments

Comments
 (0)