Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
eng-cc committed Jul 19, 2023
1 parent e17c142 commit f061f0e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,41 @@ jobs:
path: packages/webui/playwright-report/
retention-days: 30

test-landapp:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: LuisEnMarroquin/[email protected]
with:
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ...
- run: ssh -T [email protected] || true
- run: git submodule update --init --recursive
with:
submodules: recursive
ssh-key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkAa2Y049BCOYn0m2IINqBTjO18HtiOia4QRDkmClCy4/fQLcPsmQ7C7cE3TDGFNbIcm17jl3wQXCd8y1SBi6iWhcHXskI+HCtzN/NASBstljcuhx6gll3xjFhWj2XN2zwmpLzOVsCj7K34N8FRmEaPcrB3D0pKg89qO3SCPETFAwuzLFWsPzXWtDL6O90qbO1AGg2vQrucRvvIiQ2IOg8eMidXszgVi8kanfuh4zVRn+NINpNZMYFabkj6HfbGX9QyRyOS2cznKCG8MXIbIJiK9jTR0Yd0/WaUHRk69fBB0p5zhhVsrMvBAM/RjLKg1ePgJctYPTFPJMc59/MwCB3 cc_ga"
- name: Install pnpm
uses: pnpm/[email protected]
# test-landapp:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: LuisEnMarroquin/[email protected]
# with:
# SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ...
# - run: ssh -T [email protected] || true
# - run: git submodule update --init --recursive
# with:
# submodules: recursive
# ssh-key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkAa2Y049BCOYn0m2IINqBTjO18HtiOia4QRDkmClCy4/fQLcPsmQ7C7cE3TDGFNbIcm17jl3wQXCd8y1SBi6iWhcHXskI+HCtzN/NASBstljcuhx6gll3xjFhWj2XN2zwmpLzOVsCj7K34N8FRmEaPcrB3D0pKg89qO3SCPETFAwuzLFWsPzXWtDL6O90qbO1AGg2vQrucRvvIiQ2IOg8eMidXszgVi8kanfuh4zVRn+NINpNZMYFabkj6HfbGX9QyRyOS2cznKCG8MXIbIJiK9jTR0Yd0/WaUHRk69fBB0p5zhhVsrMvBAM/RjLKg1ePgJctYPTFPJMc59/MwCB3 cc_ga"
# - name: Install pnpm
# uses: pnpm/[email protected]

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
# - name: Set node version to 18
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: "pnpm"

- name: Install dependencies
run: pnpm install
- name: build packages
run: pnpm run -r build
- name: Install Playwright Browsers
run: cd packages/land_app && pnpm exec playwright install --with-deps
- name: Build fe
run: cd packages/land_app && npm run build
- name: Run Playwright tests
run: cd packages/land_app && pnpm exec playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: packages/land_app/playwright-report/
retention-days: 30
# - name: Install dependencies
# run: pnpm install
# - name: build packages
# run: pnpm run -r build
# - name: Install Playwright Browsers
# run: cd packages/land_app && pnpm exec playwright install --with-deps
# - name: Build fe
# run: cd packages/land_app && npm run build
# - name: Run Playwright tests
# run: cd packages/land_app && pnpm exec playwright test
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: packages/land_app/playwright-report/
# retention-days: 30
15 changes: 15 additions & 0 deletions packages/docs/src/content/docs/zh-cn/dev_log/202307.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ description: ''
- [x] 调研、学习 deck.gl [怎么结合 mapbox 使用](https://deck.gl/docs/get-started/using-with-map)
- [x] 最开始想用 deck.gl 的 HexagonLayer 来实现大量格子渲染,但是发现这个 layer 不太灵活,最后选择了用 polygon Layer + h3-js 来实现(从 HexagonLayer 精简而来),最终只用来测试,还没实际用起来
- [x] 用 mapboxOverlay + deck.gl 来实现了地图上添加 deck.gl 的图层,最终选用了这个方案

### 7-15~7-19

- [x] 将地图功能完善,并且提交分支, 但 CI 挂了
- [x] 解决了 GitHub action 中使用私有仓库的问题,参考[这里](https://samyaktjain24.medium.com/how-to-clone-a-private-repository-in-github-action-using-ssh-38d0de8c09d8),相关配置:

```yml
- uses: LuisEnMarroquin/[email protected]
with:
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ...
- run: ssh -T [email protected] || true
- run: git submodule update --init --recursive
```
- [ ] 解决了 GitHub action 问题时发现 yml 配置中有很多重复的配置,比如上面配置,可以将这些配置提取到一个单独的文件中,然后在 yml 中引入

0 comments on commit f061f0e

Please sign in to comment.