Skip to content

Commit

Permalink
Workflow refactoring (#11)
Browse files Browse the repository at this point in the history
* Workflow refacotoring
  • Loading branch information
VitalyArt committed Jan 2, 2023
1 parent 81abe43 commit 584d335
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 56 deletions.
60 changes: 5 additions & 55 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 584d335

Please sign in to comment.