Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Apr 18, 2024
1 parent c6c8d3c commit 760c8f2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/Codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,26 @@ jobs:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
submodules: recursive
- name: Extract packageManager from package.json
uses: sergeysova/jq-action@v2
id: packageManager
with:
cmd: "jq .packageManager ${{ matrix.string.package_json }} -r"
cmd: "jq .packageManager ${{ matrix.string.package_json }} -r"
- name: Extract actionInstallCommand from package.json
uses: sergeysova/jq-action@v2
id: actionInstallCommand
with:
cmd: "jq .actionInstallCommand ${{ matrix.string.package_json }} -r"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 20
- name: Install Node pnpm
run: npm install -g ${{ steps.packageManager.outputs.value }}
working-directory: app
- name: Install dependencies
run: pnpm install
run: ${{ steps.actionInstallCommand.outputs.value }}
working-directory: app
- name: Run tests and collect coverage
run: pnpm run test
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
release_version: ${{ steps.release_info.outputs.release_version }}
version: ${{ steps.version.outputs.value }}
packageManager: ${{ steps.packageManager.outputs.value }}
actionInstallCommand: ${{ steps.actionInstallCommand.outputs.value }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -56,6 +57,12 @@ jobs:
with:
cmd: "jq .packageManager ${{ matrix.string.package_json }} -r"

- name: Extract actionInstallCommand from package.json
uses: sergeysova/jq-action@v2
id: actionInstallCommand
with:
cmd: "jq .actionInstallCommand ${{ matrix.string.package_json }} -r"

- id: thisLatestRelease
uses: K-Sillot/github-action-get-latest-release@master
with:
Expand Down Expand Up @@ -212,7 +219,7 @@ jobs:
run: pnpm config set registry https://registry.npmjs.org/ --location project
working-directory: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app
- name: Install Node Dependencies
run: pnpm install --no-frozen-lockfile
run: ${{ needs.create_release.outputs.actionInstallCommand }}
working-directory: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app

- name: Building UI
Expand Down
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sillot",
"version": "0.29.601",
"version": "0.29.611",
"syv": "3.0.10",
"sypv": "[3.0.9]",
"description": "Build Your Eternal Digital Garden",
Expand All @@ -13,6 +13,7 @@
"pnpm": ">=9.0.0"
},
"packageManager": "pnpm@9.0.2",
"actionInstallCommand": "pnpm install --no-frozen-lockfile",
"scripts": {
"cli": "node ./package.cli.mjs",
"dlv": "echo '注意:dlv debug 是否在独立终端运行中(需要在dlv里执行continue)?没有请先启动(终端工作路径是 kernel/main.go 所在目录),不需要内核调试则应该运行 pnpm run start 命令\n' && pause && NODE_ENV=development MODE=dlv electron-forge start",
Expand Down

0 comments on commit 760c8f2

Please sign in to comment.