mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Things to be aware of: * Allows manually triggering GH workflow. See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch. * Installs versions in the yarn.lock and prevents updates to the yarn.lock. * Yarn and npm come pre-installed in Github's runner VMs. See https://docs.github.com/en/actions/guides/building-and-testing-nodejs#installing-dependencies. * We use the latest LTS Node version so it can read ES6 syntax `let`. * Karma tests require RAILS_ENV. In lib/tasks/karma.rake we default to `test` so that means someone else is setting `RAILS_ENV` before that. We'll need to find out who so we can avoid this. * We run the CI build only on pushes to any branch. This the redundancy of all build jobs due to the `push` and `pull_request` events. I still don't see what's the exact difference between these two events. See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows.