mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2025-06-27 02:09:08 +00:00
41 lines
841 B
YAML
41 lines
841 B
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
|
with:
|
|
node-version: 16
|
|
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 }}
|