https://github.com/acdh-oeaw/herokuish-for-cypress
Adds dependencies needed by cypress.io to gliderlabs/herokuish
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.3%) to scientific vocabulary
Repository
Adds dependencies needed by cypress.io to gliderlabs/herokuish
Basic Info
- Host: GitHub
- Owner: acdh-oeaw
- Language: Dockerfile
- Default Branch: main
- Size: 30.3 KB
Statistics
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
A container for gitlab CI/CD test stage with cypress.io dependencies
The default herokuish container lacks the X11 and other dependencies the headless electron browser of cypress.io e2e testing needs. This repo contains an add on Dockerfile that adds these dependencies as well as some example config files that are needed to make this work
Better e2e tests than none at all!
Usage
In our gl-autodevops-minimal-port the test step accepts a herokuish_base_image as a parameter. Specify ghcr.io/acdh-oeaw/herokuish-for-cypress/main there
Best practice: Add version information for node and npm to your package JSON. E.g.:
json
,
"engines": {
"node": "20.x",
"npm": "6.14.x"
}
You also need to make sure you serve your app using some static web server. An example server you can use can be found in the examples directory.
You need to have scripts for start and test defined in your package.json. E. g. for vue with @vue/cli-plugin-e2e-cypress installed:
json
"scripts": {
[...]
"start": "node server.js",
"test": "NODE_ENV=production vue-cli-service test:e2e --headless --env PORT=8080"
}
Note: The test environment has a special meaning for vue (unit tests) and so for end to end tests you have to set the environment explicitly. The implicit NODE_ENV would be test.
Probably set the project CI variable
bash
POSTGRES_ENABLED=false
You will rarely need a Postgres DB so don't prepare it.
Local testing
To make sure your tests run in the AutoDevOps pipline you can test the test stage locally using your own docker instance like this
bash
docker run --rm -v $(pwd):/tmp/app ghcr.io/acdh-oeaw/herokuish-for-cypress/main /bin/herokuish buildpack test
Owner
- Name: Austrian Centre for Digital Humanities & Cultural Heritage
- Login: acdh-oeaw
- Kind: organization
- Email: acdh@oeaw.ac.at
- Location: Vienna, Austria
- Website: https://www.oeaw.ac.at/acdh
- Repositories: 476
- Profile: https://github.com/acdh-oeaw
GitHub Events
Total
- Push event: 10
Last Year
- Push event: 10
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- docker/build-push-action v4 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v2 composite
- gliderlabs/herokuish latest$STACK_VERSION build
- config ^3.3.3
- http-cache-middleware ^1.3.6
- morgan ^1.10.0
- restana ^4.8.0
- serve-static ^1.14.1