From b8fdf38a85cd694f33af35b974dda22b7f3b489b Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Thu, 13 Jun 2024 12:23:49 +0200 Subject: [PATCH] add ci for javascript 2d --- .github/workflows/ci.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 517c61f..d3f9fb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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