docs: init use cases #3710
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
name: Main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: main-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
main-build: | |
strategy: | |
matrix: | |
locale: [en, de, es, fr, ja, ko, pt-BR, zh-CN, zh-TW] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node and pnpm | |
uses: silverhand-io/actions-node-pnpm-run-steps@v5 | |
- name: Build | |
run: | | |
pnpm build --locale ${{ matrix.locale }} | |
- name: Test redirects | |
if: ${{ matrix.locale == 'en' }} | |
run: | | |
pnpm serve & | |
sleep 3 | |
node test-redirects.mjs | |
main-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node and pnpm | |
uses: silverhand-io/actions-node-pnpm-run-steps@v5 | |
- name: Lint | |
run: pnpm lint |