mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2025-06-06 06:21:33 +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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.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 }}
|