stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.98k stars 227 forks source link

Add Test Suite which does not mock git #116

Closed stefanzweifel closed 3 years ago

stefanzweifel commented 3 years ago

As mentioned in #113 the current test suite mocks git completely. This makes the test suite relatively fast and independent of any internet connection.

However, this makes the test suite very tightly coupled to the implementation.

This PR adds another test file – with currently only a single test – which creates an actual commit and pushes it to a real remote repository on GitHub.

The test suite will probably fail for all contributors, as they don't have push access to the test repository. I'm still working on a solution for that.