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

fix lazy tree doc #32

Merged
merged 14 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 23 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: CI
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
Expand All @@ -18,24 +15,41 @@ jobs:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2

- name: Cache dependencies
id: cache
uses: actions/cache@v3
- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v3
with:
path: ./node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-restore.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- name: Install Cypress
if: steps.cache-restore.outputs.cache-hit != 'true'
run: npx cypress install

- 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 }}

- run: npx nx workspace-lint
- run: npx nx format:check --base=origin/main
- run: npx nx clear-cache
- run: npx nx affected --target=test --base=origin/main --parallel --max-parallel=3
- run: npx nx affected --target=lint --base=origin/main --parallel --max-parallel=3
- run: npx nx affected --target=build --base=origin/main --prod --parallel --max-parallel=3
- run: npx nx affected --target=e2e --base=origin/main --prod --parallel --max-parallel=3

- name: Run e2e cypress test
run: npx nx affected --target=e2e --base=origin/main --prod --parallel --max-parallel=3

- name: 'Build doc app for firebase hosting'
run: npx nx build doc
- name: 'Upload to Firebase HOSTING'
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,27 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Cache dependencies
id: cache
uses: actions/cache@v3
- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v3
with:
path: ./node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }}
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
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 }}

- run: npx nx clear-cache
- run: npx nx affected:build --all --prod --parallel --max-parallel=3
- run: cd dist/libs/components && npm publish --verbose || exit_code=0
Expand Down
2 changes: 1 addition & 1 deletion apps/doc/src/app/components/tree/tree.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<prizm-tree-template-checkbox-example></prizm-tree-template-checkbox-example>
</prizm-doc-example>

<prizm-doc-example id="template-lazy" heading="Lazy Load" [content]="exampleTemplateCheckbox">
<prizm-doc-example id="template-lazy" heading="Lazy Load" [content]="exampleLazy">
<prizm-tree-template-lazy-example></prizm-tree-template-lazy-example>
</prizm-doc-example>

Expand Down