mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-04 20:43:10 +00:00
feat: add GitHub Actions workflows for code quality and automation (#2)
This commit is contained in:
17
php-tests/README.md
Normal file
17
php-tests/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# ivuorinen/actions/php-tests
|
||||
|
||||
## PHP Tests
|
||||
|
||||
### Description
|
||||
|
||||
Run PHPUnit tests on the repository
|
||||
|
||||
### Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
- uses: ivuorinen/actions/php-tests@main
|
||||
```
|
||||
22
php-tests/action.yml
Normal file
22
php-tests/action.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
|
||||
name: PHP Tests
|
||||
description: Run PHPUnit tests on the repository
|
||||
author: Ismo Vuorinen
|
||||
|
||||
branding:
|
||||
icon: check-circle
|
||||
color: green
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Set Git Config
|
||||
uses: ivuorinen/actions/set-git-config@main
|
||||
|
||||
- name: Composer Install
|
||||
uses: ivuorinen/actions/php-composer@main
|
||||
|
||||
- name: Run PHPUnit Tests
|
||||
shell: bash
|
||||
run: vendor/bin/phpunit --verbose
|
||||
Reference in New Issue
Block a user