json-schema-spec
json-schema-spec copied to clipboard
Replace defunct Travis CI integration with GitHub Actions
The GitHub Actions setup is equivalent to the Travis CI configuration with two differences:
-
The GitHub Action setup does not set the
TAGenvironment variable, as it didn't seem likexml2rfcwould consume that at all (unless I'm missing something) -
The GitHub Action preserves the spec output (txt and html) as artifacts that can be downloaded after a successful run (to see the changes without having to locally render the specs)
Fixes: https://github.com/json-schema-org/json-schema-spec/issues/1262 Signed-off-by: Juan Cruz Viotti [email protected]
@Relequestual I think you might need to enable the repository to run GitHub Actions from forks to be able to test this out. Once it is merged, we should also make this check required.
What I've had to do in json-everything is merge fork PRs into a secondary branch, just to get all of the actions to run properly (even when you get them running, they don't always have all the permissions they need). Then I have another PR to pull into the primary branch.
I believe this will also upload requirements.txt to the artifact bundle.
Good catch @Relequestual ! Fixed.
I decided to merge this immediatly as our current CI simply doesn't work.