Skip to content

fix(l10n): Update translations from Transifex #149

fix(l10n): Update translations from Transifex

fix(l10n): Update translations from Transifex #149

Workflow file for this run

# SPDX-FileCopyrightText: 2023-2025 Jankari Tech Pvt. Ltd.
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: JS Unit Tests
on:
workflow_call:
inputs:
branch:
required: true
type: string
push:
branches:
- 'master'
- 'release/**'
pull_request:
paths-ignore:
- 'tests/acceptance/**'
- 'tests/lib/**'
- 'tests/stub/**'
- 'dev/**'
- 'l10n/**'
- 'lib/**'
- '**.md'
- '**.txt'
- '**.sh'
- '**.php'
- 'composer.*'
- '**.xml'
concurrency:
group: js-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
js-lint-unit:
name: js lint and unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
if: github.event_name != 'schedule'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Checkout (Nightly)
if: github.event_name == 'schedule'
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
ref: ${{ inputs.branch }}
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4
id: versions
with:
fallbackNode: '^22'
fallbackNpm: '^10'
- name: Setup NodeJS ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
cache: 'npm'
- name: Setup NPM ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install NPM Dependencies
run: npm install
- name: JS Lint
run: make lint-js || ( echo 'Please run `make lint-js-fix` to format your code' && exit 1 )
- name: Vue Unit tests
run: make jsunit
- name: JS Code Coverage Summary Report
if: ${{ github.event_name == 'pull_request' }}
uses: romeovs/lcov-reporter-action@dda1c9b1fa1622b225e9acd87a248751dbcc6ada
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage/jest/lcov.info
delete-old-comments: true
title: 'JS Code Coverage'
- name: JS coverage check
if: ${{ github.event_name == 'pull_request' }}
uses: VeryGoodOpenSource/very_good_coverage@3b475421464c564c0714d92ce02742bd81fa9eda
with:
min_coverage: '59'
path: './coverage/jest/lcov.info'