Skip to content

Commit

Permalink
Merge pull request #778 from EstrellaXD/3.1-dev
Browse files Browse the repository at this point in the history
3.1.14
  • Loading branch information
Rewrite0 authored May 31, 2024
2 parents 1cb15ca + 8e05b5e commit 2e01df0
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 13 deletions.
71 changes: 59 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,43 @@ jobs:
mkdir -p config
pytest
webui-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: cd webui && pnpm install

- name: build test
run: |
cd webui && pnpm vue-tsc --noEmit
version-info:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -81,23 +118,33 @@ jobs:
runs-on: ubuntu-latest
needs: [ test, version-info ]
if: ${{ needs.version-info.outputs.release == 1 || needs.version-info.outputs.dev == 1 }}
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
version: 8
node-version: 20

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: webui/pnpm-lock.yaml
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: cd webui && pnpm install
Expand Down Expand Up @@ -247,7 +294,7 @@ jobs:
run: |
echo ${{ needs.version-info.outputs.version }}
echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py
- name: Copy requirements.txt
working-directory: ./backend
run:
Expand All @@ -267,7 +314,7 @@ jobs:
echo "version=🌟${{ needs.version-info.outputs.version }}" >> $GITHUB_OUTPUT
echo "pre_release=false" >> $GITHUB_OUTPUT
fi
- name: Release
id: release
uses: softprops/action-gh-release@v1
Expand Down
3 changes: 2 additions & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@
"vite-plugin-pwa": "^0.16.4",
"vitest": "^0.30.1",
"vue-tsc": "^1.6.4"
}
},
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}

0 comments on commit 2e01df0

Please sign in to comment.