1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-17 03:47:04 +01:00
psalm/.github/workflows/windows-ci.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

name: Run unit tests on Windows
2021-07-25 00:12:31 +02:00
on: [push, pull_request]
jobs:
tests:
2021-07-25 00:27:05 +02:00
name: "Unit Tests"
runs-on: windows-latest
strategy:
fail-fast: false
steps:
2021-07-25 01:01:10 +02:00
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2
- uses: actions/checkout@v2
- name: Get Composer Cache Directories
id: composer-cache
run: |
echo "::set-output name=files_cache::$(composer config cache-files-dir)"
echo "::set-output name=vcs_cache::$(composer config cache-vcs-dir)"
- name: Cache composer cache
uses: actions/cache@v2
with:
path: |
${{ steps.composer-cache.outputs.files_cache }}
${{ steps.composer-cache.outputs.vcs_cache }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Run composer install
run: composer install -o
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Run unit tests
2021-07-25 00:43:09 +02:00
run: vendor/bin/paratest --log-junit build/phpunit/phpunit.xml