-
Notifications
You must be signed in to change notification settings - Fork 963
44 lines (36 loc) · 981 Bytes
/
test.yaml
File metadata and controls
44 lines (36 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Build Docsy & the website and run all repo checks across OSs.
# cSpell:ignore docsy
name: test
on:
push:
branches: [main]
pull_request:
# schedule:
# - cron: '11 0 * * *' # 11 past midnight every day
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- run: npm install --omit=optional
- if: runner.os != 'Windows'
run: npm run ci:test
- if: runner.os == 'Windows'
run: npm run ci:prepare && npm run cd:docsy.dev build && npm run ci:post
- uses: actions/upload-artifact@v6
with:
name: test-site-${{ matrix.os }}
path: |
docsy.dev/public