openclimatefix / website

Source of the Open Climate Fix website.
https://openclimatefix.org
MIT License
15 stars 11 forks source link

Fix #30: Add basic Github Actions config file #42

Closed sukhbeersingh closed 4 years ago

sukhbeersingh commented 4 years ago

This PR adds a github actions nodejs.yml file which does two things when a push or pull request is made to the repo:

  1. Install all dependencies using yarn install
  2. Run a linter, in this case eslint.

There is a lot that can be done now that we have this file. We can add some tests for our code and then run a test suite. We can add another such yml file that will deploy code to Github pages (see #7 ) whenever a push is made to the master. For this, we can either use an action like jamesIves/github-pages-deploy-action@master or just run the following in a new deploy.yml file: gatsby build && gh-pages -d public -b master -r https://github.com/openclimatefix/openclimatefix.github.io -a

flowirtz commented 4 years ago

Amazing, thanks for starting this off! I won't have the time to review this today but wanted to start working on this tomorrow anyways, esp. on #7. Thanks for already leaving a hint on where to start. Only thing I need to figure out is how we don't overwrite the CNAME file in the destination repo, that's needed for stuff around the domain. Will review tomorrow evening. Thanks @sukhbeersingh!