Skip to content

Commit

Permalink
add ci for javascript 2d
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jun 13, 2024
1 parent eb56212 commit b8fdf38
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,31 @@ env:
CARGO_TERM_COLOR: always

jobs:
check-code-snippets:
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: Code snippets compilation check + tests
- name: Tests injection + code snippets
run: cd docs-examples && cargo test
check-injection:
check-code-snippets-javascript:
runs-on: ubuntu-latest
strategy:
matrix:
dimension: [2d]
defaults:
run:
working-directory: ./docs-examples/${{ matrix.dimension }}/javascript
steps:
- uses: actions/checkout@v4
- name: Check injection script
run: find docs/user_guides/templates/ -type f -print0 | OUTPUT_FOLDER=docs/user_guides/templates_injected xargs -0 ./inject_code_in_user_guides.sh
- name: Install dependencies
run: npm i
- name: Builds javascript snippets.
run: npm run build

0 comments on commit b8fdf38

Please sign in to comment.