Skip to content

Commit a57f38b

Browse files
committed
chore: Update CSS docs workflow, and reenable e2e tests
1 parent 2dbbb71 commit a57f38b

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,19 @@ jobs:
4545
- name: Unit tests
4646
run: |
4747
npm run test:ci
48-
# Turned off until we have a (pre)release for theming-v2
49-
# - name: E2e tests
50-
# env:
51-
# STREAM_API_KEY: ${{ secrets.API_KEY }}
52-
# STREAM_USER_ID: ${{ secrets.USER_ID }}
53-
# STREAM_USER_TOKEN: ${{ secrets.USER_TOKEN }}
54-
# run: |
55-
# npm run e2e:ci
48+
- name: E2e tests
49+
env:
50+
STREAM_API_KEY: ${{ secrets.API_KEY }}
51+
STREAM_USER_ID: ${{ secrets.USER_ID }}
52+
STREAM_USER_TOKEN: ${{ secrets.USER_TOKEN }}
53+
run: |
54+
npm run e2e:ci
5655
- name: Release
5756
env:
5857
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5958
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6059
run: npx semantic-release
61-
- name: Get stream-chat-css version
62-
id: stream-chat-css-version
63-
uses: notiz-dev/github-action-json-property@release
64-
with:
65-
path: "package.json"
66-
prop_path: "dependencies.@stream-io/stream-chat-css"
67-
- name: Pull stream-chat-css
68-
uses: actions/checkout@v3
69-
with:
70-
fetch-depth: "0"
71-
repository: GetStream/stream-chat-css
72-
path: stream-chat-css
73-
ref: theming2
7460
- name: Copy docs from stream-chat-css
75-
env:
76-
DOCS_SOURCE: stream-chat-css/docs
7761
run: npm run copy-css-docs
7862
- name: Generate docs
7963
run: |

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"e2e:ci": "ng run sample-app:cypress-run --configuration production",
2727
"config:dev": "ANGULAR_ENV=development ts-node set-env.ts",
2828
"config:prod": "ANGULAR_ENV=production ts-node set-env.ts",
29-
"start-docs": "DOCS_SOURCE=node_modules/@stream-io/stream-chat-css/docs npm run generate-docs && npx stream-chat-docusaurus -s",
29+
"start-docs": "npm run generate-docs && npx stream-chat-docusaurus -s",
3030
"build:sample-app": "ng build --stats-json --project sample-app",
3131
"preanalyze:sample-app": "npm run build:sample-app",
3232
"analyze:sample-app": "webpack-bundle-analyzer dist/sample-app/stats.json",
33-
"generate-docs": "npm run typedoc:services && npm run typedoc:components && npm run copy-docs && npm run copy-css-docs $DOCS_SOURCE",
33+
"generate-docs": "npm run typedoc:services && npm run typedoc:components && npm run copy-docs && npm run copy-css-docs",
3434
"typedoc:services": "typedoc --cleanOutputDir true --excludeConstructors true --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --out temp-service-docs --exclude '!**/*service.ts' --excludeNotDocumented --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts",
3535
"typedoc:components": "typedoc --cleanOutputDir true --excludeConstructors true --sort source-order --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --excludeNotDocumented --out temp-component-docs --exclude '!**/*component.ts' --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts",
3636
"copy-docs": "ts-node copy-generated-service-docs.ts & (ts-node remove-generated-component-docs-content && ts-node copy-generated-component-docs.ts)",
3737
"copy-css": "rm -rf projects/stream-chat-angular/src/assets/styles && copyfiles --up 4 \"node_modules/@stream-io/stream-chat-css/dist/**/*\" projects/stream-chat-angular/src/assets/styles",
38-
"copy-css-docs": "./copy-css-docs.sh $DOCS_SOURCE"
38+
"copy-css-docs": "./copy-css-docs.sh node_modules/@stream-io/stream-chat-css/docs"
3939
},
4040
"lint-staged": {
4141
"**/*": [

0 commit comments

Comments
 (0)