Skip to content

Commit

Permalink
Merge branch 'release' into lagoon-waku
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Sep 3, 2024
2 parents 5de3d47 + 5019542 commit 596f77e
Show file tree
Hide file tree
Showing 102 changed files with 3,977 additions and 2,458 deletions.
8 changes: 2 additions & 6 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -23,7 +23,7 @@ runs:
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand All @@ -34,7 +34,3 @@ runs:
- name: Install dependencies
shell: bash
run: pnpm i

- name: Check formatting
shell: bash
run: pnpm test:format
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
jobs:
test:
name: Deploy
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/estimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
estimate:
name: Estimate
if: vars.JIRA_PROJECT_ID != ''
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Start Check Run
id: check
Expand All @@ -27,7 +27,7 @@ jobs:
run: npm install -g @amazeelabs/estimator

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/high_content_volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_dev_to_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 'dev'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d/%H/%M/%S')"
- name: Checkout branch "prod"
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: prod
- name: Create Git tag for PR
uses: actions/github-script@v4
uses: actions/github-script@v7
with:
script: |
github.git.createRef({
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Init check
if: ${{ github.repository != 'AmazeeLabs/silverback-template'}}
Expand All @@ -14,7 +14,7 @@ jobs:
instructions.' && false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -38,7 +38,7 @@ jobs:
TURBO_TEAM: 'local'

- name: Upload Playwright report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
Expand All @@ -56,7 +56,7 @@ jobs:
fi
- name: Publish to Chromatic
uses: chromaui/action@v1
uses: chromaui/action@v11
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down Expand Up @@ -94,13 +94,13 @@ jobs:
update_dashboard:
name: Update dashboard
if: github.ref == 'refs/heads/release' && vars.JIRA_PROJECT_ID != ''
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Install estimator
run: npm install -g @amazeelabs/estimator

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -118,7 +118,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Ruby
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_without_turbo_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Init check
if: ${{ github.repository != 'AmazeeLabs/silverback-template'}}
Expand All @@ -14,7 +14,7 @@ jobs:
instructions.' && false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -35,7 +35,7 @@ jobs:
TURBO_TEAM: 'local'

- name: Upload Playwright report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/write-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
write_dashboard:
name: Write dashboard history
if: github.ref == 'refs/heads/release' && vars.JIRA_PROJECT_ID != ''
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Install estimator
run: npm install -g @amazeelabs/estimator

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
15 changes: 15 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .lagoon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ COPY --from=builder /tmp/.deploy/cms /app

WORKDIR /app
ENV WEBROOT=web
ENV PHP_MEMORY_LIMIT=2048

# ====================================================================================================
# PHP IMAGE
Expand All @@ -73,6 +74,7 @@ COPY --from=cli /app /app

WORKDIR /app
ENV WEBROOT=web
ENV PHP_MEMORY_LIMIT=2048

# ====================================================================================================
# NGINX IMAGE
Expand Down
25 changes: 21 additions & 4 deletions INIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,34 @@ replace(
'PROJECT_NAME=example',
'PROJECT_NAME=' + process.env.PROJECT_NAME_MACHINE,
);
const clientSecret = randomString(32);
const publisherClientSecret = randomString(32);
replace(
['apps/cms/.lagoon.env', 'apps/website/.lagoon.env'],
'PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME',
'PUBLISHER_OAUTH2_CLIENT_SECRET=' + clientSecret,
'PUBLISHER_OAUTH2_CLIENT_SECRET=' + publisherClientSecret,
);
const sessionSecret = randomString(32);
const publisherSessionSecret = randomString(32);
replace(
['apps/website/.lagoon.env'],
'PUBLISHER_OAUTH2_SESSION_SECRET=REPLACE_ME',
'PUBLISHER_OAUTH2_SESSION_SECRET=' + sessionSecret,
'PUBLISHER_OAUTH2_SESSION_SECRET=' + publisherSessionSecret,
);
const previewClientSecret = randomString(32);
replace(
['apps/cms/.lagoon.env'],
'PREVIEW_OAUTH2_CLIENT_SECRET=REPLACE_ME',
'PREVIEW_OAUTH2_CLIENT_SECRET=' + previewClientSecret,
);
replace(
['apps/preview/.lagoon.env'],
'OAUTH2_CLIENT_SECRET=REPLACE_ME',
'OAUTH2_CLIENT_SECRET=' + previewClientSecret,
);
const previewSessionSecret = randomString(32);
replace(
['apps/preview/.lagoon.env'],
'OAUTH2_SESSION_SECRET=REPLACE_ME',
'OAUTH2_SESSION_SECRET=' + previewSessionSecret,
);
// Template's prod domain is special.
replace(
Expand Down
1 change: 1 addition & 0 deletions apps/cms/.lagoon.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ PREVIEW_URL="https://preview.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.

# Used to set the original client secret.
PUBLISHER_OAUTH2_CLIENT_SECRET=REPLACE_ME
PREVIEW_OAUTH2_CLIENT_SECRET=REPLACE_ME
7 changes: 4 additions & 3 deletions apps/cms/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"amazeelabs/silverback_gutenberg": "^2.4.8",
"amazeelabs/silverback_iframe": "^1.3.5",
"amazeelabs/silverback_iframe_theme": "^1.3.0",
"amazeelabs/silverback_preview_link": "^1.6",
"amazeelabs/silverback_publisher_monitor": "^2.3.2",
"amazeelabs/silverback_translations": "^1.0.4",
"composer/installers": "^2.2",
Expand Down Expand Up @@ -103,12 +104,12 @@
"drupal/userprotect": {
"Fix site install": "https://www.drupal.org/files/issues/2023-07-28/3349663-8.patch"
},
"amazeelabs/silverback_gatsby": {
"Autosave preview": "./patches/fetch-entity.patch"
},
"drupal/gutenberg": {
"Gutenberg enabled hook": "https://www.drupal.org/files/issues/2024-05-07/gutenberg_enabled_hook_3445677-2.patch",
"Remove !important from sidebar": "./patches/gutenberg_remove-important-sidebar.patch"
},
"drupal/graphql": {
"Check if translation exists when loading an entity by its uuid": "./patches/graphql_load_by_uuid_translation_check.patch"
}
},
"patchLevel": {
Expand Down
Loading

0 comments on commit 596f77e

Please sign in to comment.