i18n: zh_cn and zh_tw #1255
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| 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@v4 | |
| with: | |
| name: test-site-${{ matrix.os }} | |
| path: | | |
| docsy.dev/public |