From 584d33587478b1b4c607c9cd95b3075515e8fd84 Mon Sep 17 00:00:00 2001 From: Vitaly Artemyev Date: Tue, 3 Jan 2023 01:51:33 +0300 Subject: [PATCH] Workflow refactoring (#11) * Workflow refacotoring --- .github/workflows/tests.yml | 60 ++++--------------------------------- README.md | 2 +- 2 files changed, 6 insertions(+), 56 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 14f6c25..2101a45 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,9 +1,12 @@ -name: CI +name: PHPUnit on: [push] jobs: - test-php73: + PHPUnit: runs-on: ubuntu-latest + strategy: + matrix: + PHP: [ "7.3", "7.4", "8.0", "8.1", "8.2" ] steps: - uses: actions/checkout@v3 - uses: php-actions/composer@v6 @@ -13,56 +16,3 @@ jobs: configuration: test/phpunit/phpunit.xml args: --testdox version: 9 - php_version: "7.3" - - test-php74: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: php-actions/composer@v6 - - name: PHPUnit Tests - uses: php-actions/phpunit@master - with: - configuration: test/phpunit/phpunit.xml - args: --testdox - version: 9 - php_version: "7.4" - - test-php80: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: php-actions/composer@v6 - - name: PHPUnit Tests - uses: php-actions/phpunit@master - with: - configuration: test/phpunit/phpunit.xml - args: --testdox - version: 9 - php_version: "8.0" - - test-php81: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: php-actions/composer@v6 - - name: PHPUnit Tests - uses: php-actions/phpunit@master - with: - configuration: test/phpunit/phpunit.xml - args: --testdox - version: 9 - php_version: "8.1" - - test-php82: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: php-actions/composer@v6 - - name: PHPUnit Tests - uses: php-actions/phpunit@master - with: - configuration: test/phpunit/phpunit.xml - args: --testdox - version: 9 - php_version: "8.2" \ No newline at end of file diff --git a/README.md b/README.md index c440607..e5b151e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/vitalyart/hltv-demo-parser/php?style=flat-square) ![Packagist Version](https://img.shields.io/packagist/v/vitalyart/hltv-demo-parser?style=flat-square) ![GitHub repo size](https://img.shields.io/github/repo-size/vitalyart/hltv-demo-parser?style=flat-square) -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitalyart/hltv-demo-parser/tests.yml?branch=master) +![GitHub Workflow Status](https://github.com/VitalyArt/hltv-demo-parser/workflows/PHPUnit/badge.svg?branch=master) This package is designed to obtain information from the demo of the servers or games on the Half-Life 1 engine. Installation is possible in two versions: