Giter Club home page Giter Club logo

phpunit-matcher-action's Introduction

Hello, I'm Michael

github twitter linkedin

1/3 Engineer, 1/3 Educator, 1/3 Imaginer

By day, I'm the Senior Director of Developer Relations at @Kong. By night, I'm a parent, writer and programmer (though usually not all at the same time).

You can find all my writing at michaelheap.com, including posts on #github and #github-actions.

Project wise, I'm working on a new version of trello-cli, building out tools for docs.konghq.com and continuing to keep two small humans alive.

Outside of work, I contribute to the GitHub ecosystem as a GitHub Star and an OpenAPI Business Governance Board alumni.

In a previous life, I:

  • Led a team of 25 people focused on Developer Experience at @Vonage
  • Spent a decade as a developer, working commercially with (in chronological order): PHP, Node, Python, Go and most recently, Ruby
  • Ran an infrastructure team that used Terraform and Chef to deploy to Azure
  • Recorded a video course for Packt publishing on Mastering Express Applications
  • Wrote a book on Ansible for Apress (and contributed a module to Ansible itself)

Today, you'll find me building GitHub Actions, CLI tools and Octokit plugins.



Oh, and I self published a book + screencasts
on building your own GitHub Actions

My most used projects

phpunit-matcher-action's People

Contributors

dityaaa avatar hollodotme avatar lstrojny avatar mheap avatar tim-bezhashvyly avatar xerkus avatar zaherg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpunit-matcher-action's Issues

Improvement: allow to specify base path

I run tests in a docker container built in previous job so teamcity log output has container path instead of github workspace path expected by this action.

I would like to have an option to specify custom base path for the matcher.

Support phpcs

Hello,

Is there any plans to support PHP_Code_Sniffer (phpcs) ?

Thanks 👍

Error when .github folder does not exist

I use docker container built in previous job to run tests and as such I do not checkout the code and .github folder is not present.

Action errors out trying to write matcher file in non-existent folder.

internal/fs/utils.js:220
    throw err;
    ^

Error: ENOENT: no such file or directory, open '.github/phpunit-failure.json'
    at Object.openSync (fs.js:440:3)
    at Object.writeFileSync (fs.js:1265:35)
    at Object.<anonymous> (/home/runner/work/_actions/mheap/phpunit-matcher-action/v1/index.js:28:6)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '.github/phpunit-failure.json'
}

Escaped values not handled

The action should handle escaped values.

This message was cut before useful part

##[error]##teamcity[testFailed name='testDescribeJson' message='PDOException : SQLSTATE|[42000|]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near |'(3) DEFAULT CURRENT_TIMESTAMP(3),|' at line 9' details=' /home/runner/file.php:72|n ' duration='4' flowId='9424']

And reported as PDOException : SQLSTATE|[42000|]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near |

Multiple source of the assertation not handled

I have a problem. One of my test has nested cause of the failure. Eg.:

2) App\Tests\WebTest::testLogin
Failed asserting that Symfony\Component\Panther\DomCrawler\Crawler Object &0000000038b293090000000039caa08d (
...
/github/workspace/vendor/symfony/framework-bundle/Test/DomCrawlerAssertionsTrait.php:46
/github/workspace/tests/WebTest.php:50

Because of this the line in the --teamcity looks like this:

##teamcity[testFailed name='testLogin' message='...' details=' /github/workspace/vendor/symfony/framework-bundle/Test/DomCrawlerAssertionsTrait.php:46|n /github/workspace/tests/WebTest.php:50|n ' ...]

And the regexp only finds the first file, which is out of my scope, and the github cannot annotate the real problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.