Skip to content

current state, working? #37

current state, working?

current state, working? #37

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Unit tests"
on:
push:
jobs:
phpunit:
name: "Unit tests"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: mental_note_tests
MYSQL_USER: mental_note
MYSQL_PASSWORD: SOME_SECRET
ports:
- 3306:3306
options: --health-cmd "mysqladmin ping --silent"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_sqlite
- uses: ramsey/[email protected]
- name: "Tests"
run: "./run-tests --coverage-text=coverage.txt"
- name: "Coverage Output"
if: "${{ always() }}"
run: cat coverage.txt >> $GITHUB_STEP_SUMMARY