Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): speed up docker image creation (#275)
When a commit is merged on `master`, our GitHub Actions workflow creates a Docker image and publishes it to [our Docker Hub page](https://hub.docker.com/r/openwhyd/openwhyd/tags). As of today, this step does a `npm install`, which wastes time by installing Cypress and other dev dependencies. => The "Publish to Docker Hub registry" step ends up taking 3mn16 to run. (See https://github.com/openwhyd/openwhyd/runs/478006896) Also, the resulting images weights 596.25 MB (compressed), which could be reduced. This PR also uses `npx` to be able to run `mocha` when `npm run docker:test` is used against the Docker image.
- Loading branch information