nef icon indicating copy to clipboard operation
nef copied to clipboard

GitHub Action to compile/verify nef Playground

Open miguelangel-dev opened this issue 5 years ago • 4 comments

We want to publish a GitHub action to let users compile its nef Playgrounds (with 3rd-party libraries)

miguelangel-dev avatar Mar 17 '20 10:03 miguelangel-dev

I did a test with steps that may be helpfull on creating the github action.

I added this steps:

  • Install homebrew
  • Install nef
  • Run nef generate md (nef markdown --project Playground.app/ --output /)

And it failed with "Process completed with exit code 255"

Run nef markdown --project Playground.app/  --output /
Get playgrounds in 'Playground'... ✓
Get pages in playground 'Playground'... ✓
	• Processing page Readme... ✓
	• Processing page Example... ✓
	• Processing page Testing... ✓
☠️ rendering Xcode Playgrounds from 'Playground.app'
##[error]Process completed with exit code 255.

Any ideas?

bitomule avatar Apr 14 '20 10:04 bitomule

Ey! Great @bitomule: maybe you do not have write-permissions in /, try to use . or a different path.

On another hand, I have started to work on this, but right now I have stopped, but maybe you can test it and continue from that point - I will invite you to the repo (it is in an experimental phase).

miguelangel-dev avatar Apr 14 '20 10:04 miguelangel-dev

Yeah, changing to . worked, my mistake. Right now I have an action generating md files and a step that even moves readme to main repo README. This is crazy useful to have playgrounds and docs in projects generated in github for free.

bitomule avatar Apr 14 '20 10:04 bitomule

I am glad it is helpful! Yep, that's the idea, keep your docs verified (you can compile the Playground before to generate the markdown files) and updated! ^^

When you integrate nef to your CI it starts to be awesome!

miguelangel-dev avatar Apr 14 '20 12:04 miguelangel-dev