mirror of
https://github.com/ivuorinen/branch-usage-checker.git
synced 2026-03-08 02:57:20 +00:00
Create test.yml
This commit is contained in:
46
.github/workflows/test.yml
vendored
Normal file
46
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Tests
|
||||||
|
|
||||||
|
on: ['push', 'pull_request']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
php: ['8.0']
|
||||||
|
dependency-version: [prefer-lowest, prefer-stable]
|
||||||
|
|
||||||
|
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
extensions: fileinfo
|
||||||
|
tools: composer:v2
|
||||||
|
coverage: pcov
|
||||||
|
|
||||||
|
- name: Setup Problem Matches
|
||||||
|
run: |
|
||||||
|
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||||
|
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||||
|
|
||||||
|
- name: Install Composer dependencies
|
||||||
|
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
|
||||||
|
|
||||||
|
- name: PHPUnit Testing
|
||||||
|
run: vendor/bin/pest --coverage
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: php branch-usage-checker app:build --build-version=0.0
|
||||||
|
|
||||||
|
- name: Build Check
|
||||||
|
run: php builds/branch-usage-checker --version
|
||||||
Reference in New Issue
Block a user