Skip to content

Commit

Permalink
Run tests on Windows too (moodlehq#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 3, 2024
1 parent 95d2abd commit d601346
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- php: 8.3
- php: 8.2
- php: 8.1
- php: 8.0
- php: 7.4
php:
- 8.3
- 8.2
- 8.1
- 8.0
- 7.4
os:
- ubuntu-latest
- windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Check out repository code
uses: actions/checkout@v4

Expand Down Expand Up @@ -55,7 +63,7 @@ jobs:
run: ./vendor/bin/phpunit-coverage-check -t 80 clover.xml

- name: Integration tests
if: ${{ !cancelled() }}
if: ${{ (!cancelled()) && (runner.os == 'ubuntu-latest') }}
run: |
# There is one failure (exit with error)
vendor/bin/phpcs --standard=moodle moodle/Tests/fixtures/integration_test_ci.php | tee output.txt || [[ $? = 1 ]]
Expand Down

0 comments on commit d601346

Please sign in to comment.