chore(deps): update node.js to v22 #1069
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- "renovate/**" | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "commits_count_incr=$(($COUNT+1))" >> $GITHUB_ENV | |
if: ${{ github.event_name == 'pull_request' }} | |
env: | |
COUNT: ${{ github.event.pull_request.commits }} | |
- uses: actions/checkout@v4 | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
fetch-depth: ${{ env.commits_count_incr }} | |
- uses: actions/checkout@v4 | |
if: ${{ github.event_name != 'pull_request' }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.npm | |
~/.cache/pip | |
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- run: npm install --no-optional --no-audit --no-fund --progress=false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.7" | |
- run: make init && pip install coveralls==3.0.1 | |
- run: git log -1 --pretty=%B >> latest.log && ./.git/hooks/commit-msg latest.log | |
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD | |
if: ${{ github.event_name == 'pull_request' }} | |
- run: make lint | |
- run: make test-coverage | |
- run: coveralls || true | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm run release -- --dry-run |