Skip to content

chore: php version bump to 8.5 #8105

chore: php version bump to 8.5

chore: php version bump to 8.5 #8105

Workflow file for this run

# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: JS Tests
on: pull_request
jobs:
vitest:
runs-on: ubuntu-latest
name: Unit tests
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
id: versions
with:
fallbackNode: '^22'
fallbackNpm: '^10'
- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test:unit:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/coverage-final.json
flags: javascript
fail_ci_if_error: ${{ !github.event.pull_request.head.repo.fork }}
summary:
runs-on: ubuntu-latest
needs:
- vitest
if: always()
name: npm-test-summary
steps:
- name: Vitest status
run: if ${{ needs.vitest.result != 'success' && needs.vitest.result != 'skipped' }}; then exit 1; fi