Skip to content

Commit 5f32fec

Browse files
committed
Tests configuration
1 parent dcbfe8b commit 5f32fec

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github / workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Unit Tests
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
pull_request:
9+
branches: [ develop ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
21+
# Steps represent a sequence of tasks that will be executed as part of the job
22+
steps:
23+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+
- uses: actions/checkout@v2
25+
26+
- name: Setup PHP with PECL extension
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: '8.2'
30+
31+
# Runs a single command using the runners shell
32+
- name: Run composer install
33+
run: composer install
34+
35+
# Runs a single command using the runners shell
36+
- name: Run unit tests
37+
run: php vendor/bin/phpunit tests/Unit

src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class RequireCommerceCommand extends ExtendableRequireCommand
5151
*/
5252
protected $console;
5353

54+
/**
55+
* @var array
56+
*/
5457
protected $repos;
5558

5659
/**

0 commit comments

Comments
 (0)