ci: fix release please #5
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: CI (Web UI) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - web/** | |
| - symbolic_regression/** | |
| - dynamic_expressions/** | |
| - .cargo/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| - .github/workflows/ci-web.yml | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - web/** | |
| - symbolic_regression/** | |
| - dynamic_expressions/** | |
| - .cargo/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| - .github/workflows/ci-web.yml | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rust: | |
| name: rust (fmt + clippy + test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust (rustfmt + clippy) | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: cargo fmt --check | |
| run: cargo fmt --all --check | |
| - name: cargo clippy | |
| run: cargo clippy -p symbolic_regression --all-targets --all-features -- -D warnings | |
| - name: cargo test | |
| run: cargo test -p symbolic_regression --all-targets --all-features | |
| web-ui: | |
| name: web/ui (unit + e2e) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: wasm32-unknown-unknown | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install wasm-pack | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: wasm-pack | |
| - name: Build WASM package for web/ui | |
| run: | | |
| cd web/wasm | |
| wasm-pack build --no-opt --target web --out-dir ../ui/src/pkg | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: web/ui/package.json | |
| - name: npm install | |
| working-directory: web/ui | |
| run: npm install | |
| - name: UI unit tests (Vitest) | |
| working-directory: web/ui | |
| run: npm test | |
| - name: UI build (Vite) | |
| working-directory: web/ui | |
| run: npm run build | |
| - name: Install Playwright browsers | |
| working-directory: web/ui | |
| run: npx playwright install --with-deps chromium | |
| - name: UI e2e (Playwright, real WASM) | |
| working-directory: web/ui | |
| run: npm run test:e2e |