Skip to content

Commit

Permalink
chore: add ga workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtARTs36 committed Oct 8, 2023
1 parent eca1cc0 commit 132604a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Testing

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
testing:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xdebug

- name: Validate composer.json
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-mr-linter-metrics-collector-manager-$GITHUB_REF-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest && composer dump-autoload -o

- name: Test
run: composer test
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "mr-linter/metrics-collector-manager",
"description": "Metrics: Collector Manager",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "artarts36",
Expand Down

0 comments on commit 132604a

Please sign in to comment.