UnitTesting icon indicating copy to clipboard operation
UnitTesting copied to clipboard

Publish GitHub Action

Open pykong opened this issue 5 years ago • 4 comments

It would be great if the GitHub Action in this repo would be published. The current README.md advises:

To enable GitHub Actions, copy the file build.yml to your repository.

It would be much better if we could simply put a reference in our workflow files, like so:

- name: UnitTesting for Sublime Text 3
  uses: SublimeText/[email protected]

Example of a package allowing such reference: https://github.com/cclauss/GitHub-Action-for-pytest

pykong avatar Feb 15 '20 20:02 pykong

That requires using github action toolkit to write a javascript based action which I don't have much experiences.

randy3k avatar Feb 15 '20 20:02 randy3k

@randy3k Thanks for your response. Let me check on that.

pykong avatar Feb 16 '20 15:02 pykong

@randy3k I could not get it to work either. Maybe there will be simpler ways for reusing GitHub Actions in the future as the platform matures.

Still, I would see this of tremendous value to plugin developers. Hence, I'll suggest leaving this issue open as a feature request.

pykong avatar Feb 16 '20 17:02 pykong

I kinda know how it works, but it requires writing JS/TS which I don't have many experiences and I don't have time to learn new things now.

randy3k avatar Feb 16 '20 18:02 randy3k

Github Actions are available via

    ...
    steps:
      - uses: actions/checkout@v4
      - uses: SublimeText/UnitTesting/actions/setup@v1
      - uses: SublimeText/UnitTesting/actions/run-tests@v1
    ...

deathaxe avatar Mar 24 '24 14:03 deathaxe