Javascript code snippets #37
Workflow file for this run
This file contains 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: Rapier CI build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check-injection: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run injection script locally | |
run: find docs/user_guides/templates/ -type f -print0 | OUTPUT_FOLDER=docs/user_guides/templates_injected xargs -0 ./inject_code_in_user_guides.sh | |
test-code-snippets-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Linux dependencies | |
uses: ./.github/actions/install-linux-deps | |
- name: Tests injection + code snippets | |
run: cd docs-examples && cargo test | |
check-code-snippets-javascript: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dimension: [2d, 3d] | |
defaults: | |
run: | |
working-directory: ./docs-examples/${{ matrix.dimension }}/javascript | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Builds javascript snippets. | |
run: npm run build |