Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 588 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 588 Bytes

Magento 2 Unit Test Action

A Github Action that runs the Unit Tests of a Magento Package

Inputs

See the action.yml

Usage

name: Unit Test

on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main

jobs:
  unit-test:
    strategy:
      matrix:
        php_version:
          - 7.4
          - 8.1
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: mage-os/github-actions/unit-test@main
      with:
        php_version: ${{ matrix.php_version }}
        composer_auth: ${{ secrets.COMPOSER_AUTH }}