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

Sync #14

Merged
merged 45 commits into from
Sep 30, 2024
Merged

Sync #14

merged 45 commits into from
Sep 30, 2024

Conversation

Ryuno-Ki
Copy link
Member

Before the branches diverge even further.

Ryuno-Ki and others added 30 commits September 25, 2024 16:51
I want to test the Workflow by triggering a PR.
Please ignore.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Turns out this GitHub Action does not contain a v before its
SemVer.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
- Added .env.testing file to setup minimum testing configuration
- Added Node setup & caching
- Added building of frontend assets
- Changed .env.testing config
- Removed .env.testing since it conflicted with local setups
- Added global environment config variables
- Removed caching of node_modules in favor of setup-node's builtin caching config
- Replaced deprecated set-output method for getting composer cache directory
This is hardening the setup by preventing a leak to the logs.
While at it, I also instruct npm to install from package-lock.json to
avoid possible security incidents by pinning the dependencies.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Otherwise GitHub isn't reading the secrets from its Vault.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
I'm not completely sure whether I can reuse the artifact on a production
environment. The first step is to separate a build from a test.

Once this Workflow passes, I am going to refactor the tests workflow to
pull the artifact stored by this workflow.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Fingers crossed that this works. I'm not sure whether I need a running
MySQL.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
I might need a PAT (Personal Access Token) but let's try without one
first.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
I first need to upload the build artifact before I can download it.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This being YAML I'm trying to quote the previous workflow to ensure it
matches.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Trying stuff until it works.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
I have no idea why it isn't running.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Maybe this works.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
m(

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Was this the missing piece?

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Instead the idea is to reuse it in tests and deployment.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This is to check where the artifact is extracted.
This should extract public/build into the working directory.
I've also added the git checkout and PHP steps
stevenobird
stevenobird previously approved these changes Sep 30, 2024
We're using npm and composer.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Dependabot insists on having an item per package-ecosystem.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
@Ryuno-Ki Ryuno-Ki merged commit a63534c into main Sep 30, 2024
4 checks passed
Ryuno-Ki added a commit that referenced this pull request Sep 30, 2024
* docs: linkdrop

I want to test the Workflow by triggering a PR.
Please ignore.



* fix: get release version right

Turns out this GitHub Action does not contain a v before its
SemVer.



* Testing Environment

- Added .env.testing file to setup minimum testing configuration

* Testing workflow adjustments

- Added Node setup & caching
- Added building of frontend assets
- Changed .env.testing config

* Testing workflow adjustments

- Removed .env.testing since it conflicted with local setups
- Added global environment config variables

* Added DB_DATABASE to global testing workflow environment

* Node.js test workflow adjustments

- Removed caching of node_modules in favor of setup-node's builtin caching config
- Replaced deprecated set-output method for getting composer cache directory

* refactor: use secrets

This is hardening the setup by preventing a leak to the logs.
While at it, I also instruct npm to install from package-lock.json to
avoid possible security incidents by pinning the dependencies.



* fix: set environment

Otherwise GitHub isn't reading the secrets from its Vault.



* feat: add Build Workflow

I'm not completely sure whether I can reuse the artifact on a production
environment. The first step is to separate a build from a test.

Once this Workflow passes, I am going to refactor the tests workflow to
pull the artifact stored by this workflow.



* refactor: use build artifact

Fingers crossed that this works. I'm not sure whether I need a running
MySQL.



* fix: download artifact from other workflow

I might need a PAT (Personal Access Token) but let's try without one
first.



* fix: wait on build with testing

I first need to upload the build artifact before I can download it.



* fix: quote workflow

This being YAML I'm trying to quote the previous workflow to ensure it
matches.



* fix: add more event triggers

Trying stuff until it works.



* chore: log variables

I have no idea why it isn't running.



* refactor: define build as dependent job

Maybe this works.



* fix: dots are important

m(



* fix: mark up as reusable workflow

Was this the missing piece?



* refactor: don't trigger build workflow directly

Instead the idea is to reuse it in tests and deployment.



* Build & Testing Artifact Workflow adjustments

* Build & Testing Artifact Workflow adjustments

* Fixed artifact name

* fix: ls on not existing directories

This is to check where the artifact is extracted.

* fix: Extracting artifact to wrong path

This should extract public/build into the working directory.
I've also added the git checkout and PHP steps

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* chore: Checking where the artifact is extracted

* fix: Download artifacts into correct directories

* feat: Test vendor cache between workflows

* feat: Workflow adjustments

* feat: Create testing database in tests workflow

* feat: Split build workflow between PHP and Node jobs

* feat: Change job names and matrixes

* chore: Change PHP build job name to match default convention

* refactor: Changed workflow names to be shorter in general

* feat: Added composer validation

* Create dependabot.yml

Defer dependency update checks to a bot.

* fix: define package ecosystem

We're using npm and composer.



* fix: thou shall keep 'em apart

Dependabot insists on having an item per package-ecosystem.



---------

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
Co-authored-by: Stephano Vogel <stevenobird@users.noreply.github.com>
Co-authored-by: Stephano Vogel <stephano.vogel@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants