Skip to content

Commit

Permalink
Merge branch 'main' of github.com:zyfra/Prizm into feat/remove-old-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZurabDev committed Jan 15, 2024
2 parents e30e4b8 + bd27a83 commit b59e25a
Show file tree
Hide file tree
Showing 10 changed files with 70,044 additions and 4,559 deletions.
140 changes: 140 additions & 0 deletions .github/workflows/pr-ng17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: PR NG 17
on:
pull_request_target:
branches:
- main
jobs:
doc_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2

- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v3
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules_ng_16-${{ hashFiles('package-lock.json.ng15') }}
restore-keys: |
${{ runner.os }}-node_modules_ng_16-
- name: 'Initial changes 16'
run: |
cp -f package.json.ng16 package.json
cp -f package-lock.json.ng16 package-lock.json
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Save cache...
id: cache-save
uses: actions/cache/save@v3
if: ${{ steps.cache-restore.outputs.cache-hit != 'true' && always() }}
with:
path: ./node_modules
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

- name: 'Increase max memory limit'
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
- name: 'Set version 17'
run: npx nx generate @prizm-ui/nx-mv:apply -n v17

- name: 'Clears all the cached Nx artifacts and metadata '
run: npx nx reset

- name: 'Build doc app for firebase hosting'
run: npm run build:doc

- name: 'Upload to Firebase HOSTING (ng16)'
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PRIZMUI }}'
expires: 5d
target: v3
projectId: prizmui

lint_build_test:
needs: doc_deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2

- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v3
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules_ng_16-${{ hashFiles('package-lock.json.ng15') }}
restore-keys: |
${{ runner.os }}-node_modules_ng_16-
- name: 'Initial changes 16'
run: |
cp -f package.json.ng16 package.json
cp -f package-lock.json.ng16 package-lock.json
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Save cache...
id: cache-save
uses: actions/cache/save@v3
if: ${{ steps.cache-restore.outputs.cache-hit != 'true' && always() }}
with:
path: ./node_modules
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

- name: 'Increase max memory limit'
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
# - run: npx nx workspace-lint
# - run: npx nx clear-cache

- name: 'Set version 16'
run: npx nx generate @prizm-ui/nx-mv:apply -n v16

- name: 'Clears all the cached Nx artifacts and metadata '
run: npx nx reset

- run: npx nx affected --target=test --base=origin/main --parallel --max-parallel=3
- run: npx nx affected --target=lint --base=origin/main
# - run: npx nx affected --target=lint --base=origin/main --parallel --max-parallel=3
# TODO remove schematics excluding after fix
- run: npx nx affected --target=build --base=origin/main --prod
- run: npx nx format:check --base=origin/main
# TODO LATER fix playwright test
# - name: Install Cypress
# run: npx cypress install

# - name: Run e2e cypress test
# run: npx nx affected --target=e2e --base=main --prod --parallel --max-parallel=3
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ Thumbs.db
**/test-results
**/playwright-report
**/playwright/.cache

.nx
4 changes: 2 additions & 2 deletions apps/doc/src/app/about-prizm/contacts/contacts.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ <h2>Пример письма</h2>
<li>
<strong>Контакты</strong>
<ol>
<li>name@name.com</li>
<li>@telegram</li>
<li>name&#64;name.com</li>
<li>&#64;elegram</li>
</ol>
</li>
<li>
Expand Down
Loading

0 comments on commit b59e25a

Please sign in to comment.