|
All checks were successful
E2E Tests with Cypress / cypress (push) Successful in 3m12s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .vscode | ||
| cypress | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| cypress.config.ts | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| Dockerfile.cypress | ||
| LICENSE.md | ||
| next.config.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
aleksa.sh
my personal website and a sandbox to practice react/next.js and setting up + deploying relevant projects.
running
requires docker and docker compose (optionally node + yarn to use cypress without docker)
run dev (w/ hot reload) with docker compose up app-dev
run prod with docker compose up app-prod
for e2e, run the app in test mode with docker compose up app-test, then start a native cypress run with yarn e2e. for a docker cypress run instead, use a tarball with custom build context to circumvent the default .dockerignore file like in the ci example.
test expansion is planned for the future.
ci/cd
forgejo runner used (labelled ubuntu-host-docker) is a host passthrough runner that has access to an ubuntu host machine with docker and docker compose installed. refer to this forgejo actions documentation for more info.
make sure to always have a cleanup task at the end to prevent piling up containers on the host machine.
the ci workflow syntax and tasks may undergo frequent changes due to forgejo actions being wip.
future commits will introduce auto-deployment in cd.
contact
feel free to reach out to me for any purpose on aleksa@aleksa.sh :)