Skip to content

Commit

Permalink
Add a test for Windows machines
Browse files Browse the repository at this point in the history
  • Loading branch information
markwalet committed Nov 27, 2023
1 parent 7773d5a commit 7e0ca0b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: coverage

on: [push, pull_request]

jobs:
windows-test:
runs-on: windows-latest

name: Coverage

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
coverage: xdebug

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: Calculate coverage statistics
run: vendor/bin/phpunit --coverage-clover 'clover.xml'

- name: Send coverage statistics
uses: codecov/codecov-action@v1

0 comments on commit 7e0ca0b

Please sign in to comment.