Skip to content

fix(l10n): Update translations from Transifex #12897

fix(l10n): Update translations from Transifex

fix(l10n): Update translations from Transifex #12897

# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Analysis & Coverage
on:
pull_request:
push:
branches:
- master
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
db-type: [postgres, sqlite]
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_DB: nextcloudappstore
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
path: ${{ env.APP_NAME }}
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install -o Acquire::Retries=5 --fix-missing gettext netcat-openbsd xvfb redis-server
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14'
- name: Install poetry
run: pip install poetry==1.8.2
- uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2
with:
firefox-version: latest
- name: Set up Geckodriver
uses: browser-actions/setup-geckodriver@fac5b0424c584257f32cf12c5eb4ba86014c34f8 # latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Make dev-setup
run: |
make dev-setup db="${{ matrix.db-type }}" venv_bin=""
make l10n venv_bin=""
npm install tslint
- name: Linter
run: ./node_modules/.bin/tslint "./nextcloudappstore/core/static/assets/**/*.ts"
- name: Generate coverage report
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x8" make test venv_bin=""
make coverage venv_bin=""
- name: Upload Codecov to artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage_${{ matrix.db-type }}.xml
path: coverage.xml
if-no-files-found: error
upload-codecov:
needs: [ test ]
permissions:
contents: none
runs-on: ubuntu-24.04
name: Upload Coverage
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
path: ${{ env.APP_NAME }}
- name: Download Coverage Artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: coverage
pattern: coverage_*
merge-multiple: true
- name: Upload report to Codecov
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage
fail_ci_if_error: true
verbose: true