Merge pull request #644 from trheyi/main

refactor: Update Node.js setup and cache actions to latest versions
This commit is contained in:
Max 2024-07-04 11:55:00 +08:00 committed by GitHub
commit d4063509c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 13 deletions

View file

@ -17,7 +17,7 @@ jobs:
runs-on: "macos-12" runs-on: "macos-12"
steps: steps:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 18
@ -25,7 +25,7 @@ jobs:
run: npm install -g pnpm run: npm install -g pnpm
- name: Setup Cache - name: Setup Cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build
@ -35,25 +35,25 @@ jobs:
${{ runner.os }}-go- ${{ runner.os }}-go-
- name: Checkout Kun - name: Checkout Kun
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/kun repository: yaoapp/kun
path: kun path: kun
- name: Checkout Xun - name: Checkout Xun
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/xun repository: yaoapp/xun
path: xun path: xun
- name: Checkout Gou - name: Checkout Gou
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/gou repository: yaoapp/gou
path: gou path: gou
- name: Checkout V8Go - name: Checkout V8Go
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/v8go repository: yaoapp/v8go
lfs: true lfs: true
@ -62,13 +62,13 @@ jobs:
- name: Checkout XGen v1.0 - name: Checkout XGen v1.0
# ** XGEN will be renamed to DUI in the feature. and move to the new repository. ** # ** XGEN will be renamed to DUI in the feature. and move to the new repository. **
# ** new repository: https://github.com/YaoApp/dui.git ** # ** new repository: https://github.com/YaoApp/dui.git **
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/xgen repository: yaoapp/xgen
path: xgen-v1.0 path: xgen-v1.0
- name: Checkout Yao-Init - name: Checkout Yao-Init
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: yaoapp/yao-init repository: yaoapp/yao-init
path: yao-init path: yao-init
@ -87,7 +87,7 @@ jobs:
ls -l ../xgen-v1.0/packages/setup/ ls -l ../xgen-v1.0/packages/setup/
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go }} - name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v3 uses: actions/setup-go@v3

View file

@ -54,7 +54,7 @@ env:
## Path ## Path
YAO_EXTENSION_ROOT: ${{ github.WORKSPACE }}/../extension YAO_EXTENSION_ROOT: ${{ github.WORKSPACE }}/../extension
YAO_TEST_APPLICATION: ${{ github.WORKSPACE }}/../app YAO_TEST_APPLICATION: ${{ github.WORKSPACE }}/../app
YAO_SUI_TEST_APPLICATION: ${{ github.WORKSPACE }}/../yao-yao-startup-webapp YAO_SUI_TEST_APPLICATION: ${{ github.WORKSPACE }}/../yao-startup-webapp
YAO_TEST_BUILDER_APPLICATION: ${{ github.WORKSPACE }}/../page-builder-app YAO_TEST_BUILDER_APPLICATION: ${{ github.WORKSPACE }}/../page-builder-app
## Runtime ## Runtime
@ -232,7 +232,7 @@ jobs:
password: ${{ secrets.UNIT_PASS }} password: ${{ secrets.UNIT_PASS }}
- name: Setup Go ${{ matrix.go }} - name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v3 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}

View file

@ -58,7 +58,7 @@ env:
## Path ## Path
YAO_EXTENSION_ROOT: ${{ github.WORKSPACE }}/../extension YAO_EXTENSION_ROOT: ${{ github.WORKSPACE }}/../extension
YAO_TEST_APPLICATION: ${{ github.WORKSPACE }}/../app YAO_TEST_APPLICATION: ${{ github.WORKSPACE }}/../app
YAO_SUI_TEST_APPLICATION: ${{ github.WORKSPACE }}/../yao-yao-startup-webapp YAO_SUI_TEST_APPLICATION: ${{ github.WORKSPACE }}/../yao-startup-webapp
YAO_TEST_BUILDER_APPLICATION: ${{ github.WORKSPACE }}/../page-builder-app YAO_TEST_BUILDER_APPLICATION: ${{ github.WORKSPACE }}/../page-builder-app
## Runtime ## Runtime
@ -187,7 +187,7 @@ jobs:
password: ${{ secrets.UNIT_PASS }} password: ${{ secrets.UNIT_PASS }}
- name: Setup Go ${{ matrix.go }} - name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v3 uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}