-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/user-destroy-media
- Loading branch information
Showing
103 changed files
with
3,500 additions
and
2,574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# We'd like to place this file to the .config/ folder as well, | ||
# however Codecov doesn't support it yet (or is buggy, see | ||
# https://github.com/codecov/codecov-action/issues/1465) | ||
|
||
# Ignore test files themselves in the Codecov report | ||
# see: https://about.codecov.io/blog/should-i-include-test-files-in-code-coverage-calculations/ | ||
ignore: | ||
- "spec/**/*" | ||
- "**/*_spec.rb" | ||
|
||
# https://docs.codecov.com/docs/commit-status | ||
coverage: | ||
status: | ||
project: off | ||
patch: off |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
e2e: { | ||
// Base URL is set via Docker environment variable | ||
viewportHeight: 1000, | ||
viewportWidth: 1400, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Prints this help message | ||
[private] | ||
help: | ||
@just --list --justfile {{source_file()}} | ||
|
||
# Starts the dev docker containers | ||
@up *args: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
docker compose up {{args}} | ||
|
||
# Starts the dev docker containers and preseeds the database | ||
[confirm("This will reset all your data in the database locally. Continue? (y/n)")] | ||
up-reseed *args: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
export DB_SQL_PRESEED_URL="https://github.com/MaMpf-HD/mampf-init-data/raw/main/data/20220923120841_mampf.sql" | ||
export UPLOADS_PRESEED_URL="https://github.com/MaMpf-HD/mampf-init-data/raw/main/data/uploads.zip" | ||
docker compose rm --stop --force mampf && docker compose up {{args}} | ||
|
||
# Removes the development docker containers | ||
@down: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
docker compose down | ||
|
||
# Stops the development docker containers (without removing them) | ||
@stop: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
docker compose stop | ||
|
||
# Puts you into a shell of your desired *development* docker container | ||
@shell name="mampf" shell="bash": | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
docker compose exec -it {{name}} bash | ||
|
||
# Puts you into a shell of your desired *test* docker container | ||
@shell-test name="mampf" shell="bash": | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/test/ | ||
docker compose exec -it {{name}} {{shell}} | ||
|
||
# Puts you into the rails console of the dev docker mampf container | ||
@rails-c: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/development/ | ||
docker compose exec mampf bundle exec rails c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Prints this help message | ||
[private] | ||
help: | ||
@just --list --justfile {{source_file()}} | ||
|
||
# Starts the interactive Cypress test runner UI | ||
cypress: | ||
#!/usr/bin/env bash | ||
cd {{justfile_directory()}}/docker/test | ||
docker compose -f docker-compose.yml -f cypress.yml -f cypress-interactive.yml up --exit-code-from cypress | ||
|
||
# Opens Codecov in the default browser | ||
codecov: | ||
xdg-open https://app.codecov.io/gh/MaMpf-HD/mampf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Documentation: https://just.systems/man/en/ | ||
|
||
# Prints this help message | ||
[private] | ||
help: | ||
@just --list | ||
|
||
# Test-related commands | ||
mod test ".config/commands/test.justfile" | ||
# see https://github.com/casey/just/issues/2216 | ||
# alias t := test | ||
|
||
# Docker-related commands | ||
mod docker ".config/commands/docker.justfile" | ||
|
||
# Opens the MaMpf wiki in the default browser | ||
wiki: | ||
#!/usr/bin/env bash | ||
xdg-open https://github.com/MaMpf-HD/mampf/wiki | ||
# Opens the MaMpf pull requests (PRs) in the default browser | ||
prs: | ||
#!/usr/bin/env bash | ||
xdg-open https://github.com/MaMpf-HD/mampf/pulls | ||
# Opens the PR for the current branch in the default browser | ||
pr: | ||
#!/usr/bin/env bash | ||
branchname=$(git branch --show-current) | ||
xdg-open "https://github.com/MaMpf-HD/mampf/pulls?q=is%3Apr+is%3Aopen+head%3A$branchname" | ||
# Opens the MaMpf GitHub code tree at the current branch in the default browser | ||
code branch="": | ||
#!/usr/bin/env bash | ||
branchname={{ if branch == "" {"$(git branch --show-current)"} else {branch} }} | ||
xdg-open https://github.com/MaMpf-HD/mampf/tree/$branchname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.