@@ -12,29 +12,26 @@ jobs:
1212 UI :
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : Get yarn cache dir
16- id : yarnCache
17- run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
1815 - name : Checkout
1916 uses : actions/checkout@v4
17+ - uses : pnpm/action-setup@v5
18+ with :
19+ package_json_file : ui/package.json
2020 - name : Install Node.js
2121 uses : actions/setup-node@v4
2222 with :
23- node-version : 20.x
24- - name : Cache node modules
25- uses : actions/cache@v4
26- with :
27- path : ${{ steps.yarnCache.outputs.dir }}
28- key : ${{ runner.os }}-build-cache-yarn-${{ hashFiles('**/yarn.lock') }}
23+ node-version : 22.x
24+ cache : pnpm
25+ cache-dependency-path : ui/pnpm-lock.yaml
2926 - name : Install dependencies
3027 working-directory : ui
31- run : yarn install
28+ run : pnpm install
3229 - name : Lint
3330 working-directory : ui
34- run : yarn lint
31+ run : pnpm lint
3532 - name : Test
3633 working-directory : ui
37- run : yarn test
34+ run : pnpm test
3835 - name : Coveralls
3936 uses : coverallsapp/github-action@v2
4037 continue-on-error : true
4441 parallel : true
4542 - name : Build UI
4643 working-directory : ui
47- run : yarn build
44+ run : pnpm build
4845
4946 Python :
5047 name : Python ${{ matrix.python }}, OctoPrint ${{ matrix.octoprint }}
@@ -107,15 +104,15 @@ jobs:
107104 with :
108105 path : ${{ steps.pipCache.outputs.dir }}
109106 key : ${{ runner.os }}-build-cache-pip-python-${{ matrix.python }}-octoprint-${{ matrix.octoprint}}
107+ - name : Install setuptools 81
108+ # https://github.com/pypa/setuptools/issues/3085
109+ run : pip install 'setuptools>=81.0.0,<82.0.0'
110110 - name : Install OctoPrint
111111 # see https://stackoverflow.com/questions/49854628/how-do-i-pip-install-the-latest-patch-number-of-a-package
112112 run : pip install octoprint~=${{ matrix.octoprint }}.0
113113 - name : Install Wheel
114114 # see https://community.octoprint.org/t/setuptools-error-while-installing-plugin-octoklipper-on-manual-op-installation/51387
115115 run : pip install wheel
116- - name : Fixed setuptools
117- # see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
118- run : pip install "setuptools~=79.0.0"
119116 - name : Make liblgpio.so
120117 if : ${{ matrix.python == '3.13' }}
121118 # see https://github.com/borisbu/OctoRelay/issues/346#issuecomment-2849009685
0 commit comments