2024-09-27 10:40:53 +01:00
|
|
|
name: test-js
|
|
|
|
|
|
|
|
|
|
on:
|
2026-04-27 12:07:43 +01:00
|
|
|
workflow_dispatch:
|
2024-09-27 10:40:53 +01:00
|
|
|
push:
|
|
|
|
|
paths:
|
|
|
|
|
- '**.js'
|
|
|
|
|
- '**.ts'
|
|
|
|
|
- '**.json'
|
|
|
|
|
pull_request:
|
|
|
|
|
paths:
|
|
|
|
|
- '**.js'
|
|
|
|
|
- '**.ts'
|
|
|
|
|
- '**.json'
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
if: ${{ github.ref != 'refs/heads/l10n_development' }}
|
2026-04-27 12:07:43 +01:00
|
|
|
runs-on: docker
|
|
|
|
|
container:
|
2026-04-27 13:36:47 +01:00
|
|
|
image: docker.io/library/node:24-trixie
|
2024-09-27 10:40:53 +01:00
|
|
|
steps:
|
2026-04-27 12:07:43 +01:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v6
|
2024-09-27 10:40:53 +01:00
|
|
|
|
|
|
|
|
- name: Install NPM deps
|
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
|
|
- name: Run TypeScript type checking
|
|
|
|
|
run: npm run ts:lint
|
|
|
|
|
|
|
|
|
|
- name: Run JavaScript tests
|
|
|
|
|
run: npm run test
|