11# continuous integration
2- name : botensky-ci
2+ name : main
33
44# Controls when the action will run.
55on :
@@ -25,21 +25,29 @@ jobs:
2525
2626 environment : github_actions_bes
2727 steps :
28- - name : Git checkout
29- uses : actions/checkout@v3
28+ - name : Checkout code
29+ uses : actions/checkout@v5
3030
31- - name : Use Node.js ${{ matrix.node-version }}
32- uses : actions/setup-node@v3
31+ - name : Setup pnpm
32+ uses : pnpm/action-setup@v4
33+ with :
34+ # version from package.json
35+ run_install : false
36+
37+ - name : Setup Node.js ${{ matrix.node-version }}
38+ uses : actions/setup-node@v5
3339 with :
3440 node-version : ${{ matrix.node-version }}
41+ cache : ' pnpm'
3542
3643 - name : Install dependencies
37- # npx force-resolutions : in case of Permission denied: run it locally to fix package-lock.json
3844 run : |
45+ echo ::group::Install dependencies
3946 echo "install"
40- npm install
47+ pnpm --silent install
4148 echo "show outdated (if any)"
42- npm outdated --depth=3 || echo "you must think about update your dependencies :)"
49+ pnpm outdated --depth=3 || echo "::warning::🕸️ you must think about update your dependencies :)"
50+ echo ::endgroup::
4351
4452 - name : Run tests
4553 env :
5462 PLANTNET_API_PRIVATE_KEY : ${{ secrets.PLANTNET_API_PRIVATE_KEY }}
5563 UNSPLASH_ACCESS_KEY : ${{ secrets.UNSPLASH_ACCESS_KEY }}
5664 BOT_INACTIVITY_DELAY_MIN : 1
57- run : npm run ci-test
65+ run : pnpm ci-test
5866
5967 - name : Report coverage
6068 if : github.event_name == 'pull_request'
6775 filter-changed-files : true
6876
6977 - name : Git deploy tag coverage report
70- uses : peaceiris/actions-gh-pages@v3
78+ uses : peaceiris/actions-gh-pages@v4
7179 if : github.ref_type == 'tag'
7280 with :
7381 github_token : ${{ secrets.GH_ACTIONS_TOKEN }}
0 commit comments