mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 05:30:05 +03:00
39 lines
798 B
YAML
39 lines
798 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
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 }}
|