Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document instructions for validating locally #51

Open
mr-c opened this issue Jul 28, 2021 · 3 comments
Open

Document instructions for validating locally #51

mr-c opened this issue Jul 28, 2021 · 3 comments

Comments

@mr-c
Copy link

mr-c commented Jul 28, 2021

Here is what I had to do:

sudo gem install install_specific
gem install_specific --user-install https://github.com/citation-file-format/ruby-cff.git

and then make a local file test.rb

require 'cff'
begin
  CFF::File.validate!('CITATION.cff')
end
ruby test.rb
@arfon
Copy link
Collaborator

arfon commented Jul 30, 2021

Perhaps this could be manifested as some kind of basic GitHub Action that essentially runs these steps whenever the code is updated?

@hainesr
Copy link
Member

hainesr commented Jul 30, 2021

Ooh, a GitHub action to validate CFF files would be ace.

@sdruskat
Copy link
Member

sdruskat commented Aug 2, 2021

https://github.com/marketplace/actions/cffconvert has done this for 1.1.0 and older, and will be updated at some point to support 1.2.0. It's a bit clunky atm, and multi-purpose (also used for conversion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants