Skip to content

Commit

Permalink
Merge pull request #591 from digirati-co-uk/feature/v2.1
Browse files Browse the repository at this point in the history
v2.1
  • Loading branch information
stephenwf authored Mar 2, 2023
2 parents 3297057 + 52bbf8d commit 12131a9
Show file tree
Hide file tree
Showing 793 changed files with 33,623 additions and 12,548 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 7 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ POSTGRES_SEARCH_API_USER=search_api
POSTGRES_SEARCH_API_SCHEMA=search_api
POSTGRES_SEARCH_API_PASSWORD=search_api_password

GATEWAY_HOST=http://localhost:8888

# New SMTP
SMTP_HOST=host.docker.internal
SMTP_PORT=1025
Expand All @@ -38,4 +36,10 @@ SMTP_USER=project.1
SMTP_PASSWORD=secret.1

MAIL_FROM_USER="Madoc local <noreply@madoc.io>"
MADOC_INSTALLATION_CODE="$2b$14$eofdZp3nY.HyK68a9zCfoOs3fuphxHRAR/KhckFm.8Qi8sEmgMcCK"
MADOC_INSTALLATION_CODE='$2b$14$eofdZp3nY.HyK68a9zCfoOs3fuphxHRAR/KhckFm.8Qi8sEmgMcCK'

# HTTPS
# LOCAL PORT FOR HTTPS, CAN BE CHANGED
PORTS_GATEWAY_HTTPS=443
#GATEWAY_HOST=http://localhost:8888 <-- change for http
GATEWAY_HOST=https://madoc.local
2 changes: 1 addition & 1 deletion .github/workflows/madoc-ts-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: ['main']
tags: ['v*']
pull_request:
branches: ['main']
branches: ['main', 'feature/v2.1']
paths:
- ".github/workflows/madoc-ts-docker.yaml"
- "services/madoc-ts/src/**"
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/madoc-ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ on:
jobs:
madoc-ts-build:
runs-on: ubuntu-latest

name: Node build
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- name: Get yarn cache
id: yarn-cache
Expand All @@ -58,13 +57,25 @@ jobs:

- uses: actions/cache@v1
with:
path: services/madoc-ts/.cache
key: typescript-cache
path: services/madoc-ts/node_modules/.vite
key: vite-cache
restore-keys: |
typescript-cache
vite-cache
- working-directory: services/madoc-ts
run: yarn run build:vite-producer

- working-directory: services/madoc-ts
run: yarn run build:vite-auth

- working-directory: services/madoc-ts
run: yarn run build:vite-server

- working-directory: services/madoc-ts
run: yarn run build:vite-scheduler

- working-directory: services/madoc-ts
run: yarn run build
run: yarn run build:frontend

- working-directory: services/madoc-ts
run: yarn run test
52 changes: 52 additions & 0 deletions .github/workflows/test-storybook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Test storybook

on:
pull_request:
types: [ labeled, push ]

jobs:
build:
if: ${{ contains( github.event.pull_request.labels.*.name, 'test-storybook') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-madoc-ts-${{ hashFiles('services/madoc-ts/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-madoc-ts-
- working-directory: services/madoc-ts
run: yarn install --frozen-lockfile --non-interactive

- uses: actions/cache@v1
with:
path: services/madoc-ts/node_modules/.vite
key: vite-cache
restore-keys: |
vite-cache
- name: Install Playwright
working-directory: services/madoc-ts
run: npx playwright install --with-deps

- name: Build Storybook
working-directory: services/madoc-ts
run: yarn build-storybook --quiet

- name: Serve Storybook and run tests
working-directory: services/madoc-ts
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6500 --silent" \
"npx wait-on tcp:6006 && yarn test-storybook --ci"
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
.idea
var/database/data
var/files/*
.run
theme.zip
node_modules
var/shared-database/*
var/certs/*
var/jwt/*
var/test-environment
var/*
key.pub
.terraform
infrastructure/ansible/inventory.yml
infrastructure/ansible/vars/default.yml
var_backup
e2e/cypress/fixtures/madoc-test-fixtures
services/enrichment
services/search
services/madoc-remix
services/madoc-ts/service-jwts/madoc-remix.json
e2e/test-fixtures/postgres/default/default.sql
.DS_Store
Loading

0 comments on commit 12131a9

Please sign in to comment.