Skip to content

Highlight %2$,d-style placeholders (#4049) #1872

Highlight %2$,d-style placeholders (#4049)

Highlight %2$,d-style placeholders (#4049) #1872

Workflow file for this run

name: Frontend
on:
push:
branches:
- main
paths:
- translate/**
- .github/workflows/frontend.yml
pull_request:
branches:
- main
paths:
- translate/**
- .github/workflows/frontend.yml
workflow_dispatch:
jobs:
typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with: { node-version: '22' }
- name: Install dependencies
run: npm ci
- name: Check TypeScript
run: npm run types -- --pretty
working-directory: translate
- name: build
run: npm run build
working-directory: translate
licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with: { node-version: '22' }
- name: Install globals
run: npm install --global license-checker-rseidelsohn@4.4.2
- name: Install dependencies
run: npm ci
- name: Check licenses
run: |
# --failOn doesn't print the licenses on failure.
# Use jq to print only minimal info, then print a summary when
# checking for GPL packages.
license-checker-rseidelsohn --json | jq -r 'to_entries[] | "\(.key): \(.value.licenses)"'
license-checker-rseidelsohn --summary --failOn 'GPL'
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with: { node-version: '22' }
- name: Install dependencies
run: npm ci
- name: vitest
run: npm test -- --coverage
working-directory: translate
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
flags: frontend
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}