Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D002-testing: Add new module for testing (phpunit and behat) #4

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
df6a69b
D002-testing: Set both images dev and ci for php at docker-compose.yml.
abel-santos-corral Mar 10, 2024
9c4f6ea
D002-testing: Homogenize the package at all info yaml files.
abel-santos-corral Mar 10, 2024
f6c1440
D002-testing: Add tester_base module.
abel-santos-corral Mar 10, 2024
d61a847
D002-testing: Add test_base module for testing purpose.
abel-santos-corral Mar 16, 2024
9da5488
D002-testing: Add test class ExampleJsonControllerTest.php.
abel-santos-corral Mar 17, 2024
ac0f783
D8EMA-002: Fix static analysis errors found after first round of deve…
abel-santos-corral Mar 17, 2024
5e928b3
D002-testing: Add new ddd_views module.
abel-santos-corral Mar 21, 2024
1d12b34
D002-testing: Add config stuff for raising docker properly.
abel-santos-corral Mar 22, 2024
1d8afa0
D002-testing: Add ddd_views module with configuration.
abel-santos-corral Mar 22, 2024
4f98274
D002-testing: Add the pseudofield view plugin example.
abel-santos-corral Mar 22, 2024
91f262c
D002-testing: Add new module ddd_news.
abel-santos-corral Mar 25, 2024
5f0f23b
D002-testing: At ddd_news define a Custom Views Filter Plugin.
abel-santos-corral Mar 25, 2024
6c2ea98
D002-testing: Add new module ddd_header_link.
abel-santos-corral Mar 26, 2024
ab47090
D002-testing: Add menu item for views and create ddd_default_content.
abel-santos-corral Mar 26, 2024
2fa3568
D002-testing: Add Access view custom components.
abel-santos-corral Mar 26, 2024
9c99a50
D002-testing: Upgrade components at composer.lock.
abel-santos-corral Mar 26, 2024
89a66e2
D002-testing: Upgrading core and dependencies.
abel-santos-corral Mar 26, 2024
28d59c3
D002-testing: Add custom style plugin to ddd_news view.
abel-santos-corral Mar 26, 2024
a220315
D002-testing: Add new module ddd_slider.
abel-santos-corral Mar 26, 2024
8aa70f2
D002-testing: Fix the issue with slick library.
abel-santos-corral Mar 26, 2024
c891740
D002-testing: Add all components needed for ddd_search.
abel-santos-corral Mar 27, 2024
32d07bf
D002-testing: Adding join example at ddd_news.
abel-santos-corral Mar 27, 2024
f7b4e01
D002-testing: Add subscriber module.
abel-santos-corral Mar 27, 2024
8e81b96
D002-testing: Add Download controller.
abel-santos-corral May 15, 2024
6b0cab1
D002-testing: Add another page for demoing the DownloadController fun…
abel-santos-corral May 15, 2024
d4115fe
D002-testing: Add github workflows
abel-santos-corral Aug 17, 2024
f944d5a
d002-testing: Adding actions into readme. Little commit.
abel-santos-corral Aug 17, 2024
34131ef
D002-testing: Add one more job at ci.yml.
abel-santos-corral Aug 18, 2024
fc03c52
d002-testing: Adding comment to README.me to check new action.
abel-santos-corral Aug 18, 2024
a27c972
d002-testing: Fix new job Moren more.
abel-santos-corral Aug 18, 2024
3e2d9c5
d002-testing: Redo the README.md to trigger actions.
abel-santos-corral Aug 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .env

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: First workflow

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Hello Codelies!
run: echo "Hello!!!! from ${{ github.workflow }} triggered by the ${{ github.event_name }} done by ${{ github.actor }}"

- name: 💩 Moren more
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: |
echo "Job Context: $JOB_CONTEXT"
echo "Done!"
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ and [Docker Compose](https://docs.docker.com/compose/install/)

The project ships with default configuration in the `runner.yml.dist` file. This
file is configured to run the website on the provided docker containers. If you
are happy using those, you can skip directly to the
[installing the project](#14-installing-the-project) section. You can customize
the default configuration by copying `runner.yml.dist` to `runner.yml` and
changing for example the connection details for your database server and
are happy using those, you can skip directly to the
[installing the project](#14-installing-the-project) section. You can customize
the default configuration by copying `runner.yml.dist` to `runner.yml` and
changing for example the connection details for your database server and
selenium server.

### 1.3 Setting up the environment
Expand Down Expand Up @@ -51,15 +51,15 @@ alias dcweb="docker-compose exec web"

```bash
# Run composer install in the web service.
dcweb composer install
docker-compose exec web composer install
# Build your development instance of the website.
dcweb ./vendor/bin/run toolkit:build-dev
docker-compose exec web ./vendor/bin/run toolkit:build-dev
# Perform a clean installation of the website.
dcweb ./vendor/bin/run toolkit:install-clean
docker-compose exec web ./vendor/bin/run toolkit:install-clean
# Perform a clone installation with production data.
dcweb ./vendor/bin/run toolkit:install-clone
docker-compose exec web ./vendor/bin/run toolkit:install-clone
# Get the uri to start working on the browser.
dcweb ./vendor/bin/drush uli --uri=http://localhost:8080/web/
docker-compose exec web ./vendor/bin/drush uli --uri=http://localhost:8080/web/
```

Using default configuration your Drupal site will be available locally at:
Expand All @@ -82,11 +82,11 @@ setting up a project there it will be available at either:

```bash
# Run coding standard checks.
dcweb ./vendor/bin/run toolkit:test-phpcs
docker-compose exec web ./vendor/bin/run toolkit:test-phpcs
# Run behat tests on a clean installation.
dcweb ./vendor/bin/run toolkit:test-behat
docker-compose exec web ./vendor/bin/run toolkit:test-behat
# Run behat tests on a clone installation.
dcweb ./vendor/bin/run toolkit:test-behat -D "behat.tags=@clone"
docker-compose exec web ./vendor/bin/run toolkit:test-behat -D "behat.tags=@clone"
```

### 1.6 Updating composer.lock
Expand All @@ -95,5 +95,9 @@ When having a conflict on the composer.lock file it is best to solve the
conflict manually and then update the lock file.

```bash
dcweb composer update --lock
docker-compose exec web composer update --lock
```

# Github Actions

Added workflows at the github folder. Trying new stuff.
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@
"php": ">=8.1",
"composer/installers": "^2.2",
"cweagans/composer-patches": "^1.7",
"drupal/core": "^10",
"drupal/core-composer-scaffold": "10.2.0",
"drupal/core-project-message": "10.2.0",
"drupal/core-recommended": "10.2.0",
"drupal/admin_toolbar": "^3.4",
"drupal/core": "^10.2",
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2",
"drupal/default_content": "^2.0@alpha",
"drupal/search_api": "^1.31",
"drush/drush": "^11 | ^12"
},
"require-dev": {
"behat/mink-goutte-driver": "^1.0 || ^2.0",
"drupal/config_devel": "^1.9",
"drupal/core-dev": "^10",
"drupal/drupal-driver": "^2.2.0",
"drupal/drupal-extension": "~4.0 || ^5",
Expand Down
Loading