mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 08:00:05 +03:00
40 lines
818 B
YAML
40 lines
818 B
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test-urls:
|
|
name: Test URLs
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
command:
|
|
- test:blog-urls
|
|
- test:docs-urls
|
|
- test:web-urls
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 20
|
|
check-latest: true
|
|
cache: npm
|
|
|
|
- name: Build and start test server
|
|
run: |
|
|
npm ci --no-audit
|
|
npm run build
|
|
npm run serve &
|
|
|
|
- name: Test URL
|
|
run: npm run ${{ matrix.command }}
|