Skip to content

Merge pull request #1673 from o1-labs/dw/mina-rust-use-release-tag #653

Merge pull request #1673 from o1-labs/dw/mina-rust-use-release-tag

Merge pull request #1673 from o1-labs/dw/mina-rust-use-release-tag #653

name: Test Documentation Scripts - Frontend
# Test locally with:
# ```bash
# # Ubuntu 22.04 (recommended)
# gh extension exec act \
# --workflows .github/workflows/test-docs-scripts-frontend.yaml \
# --matrix os:ubuntu-22.04
#
# # Ubuntu 24.04 (requires platform mapping)
# gh extension exec act \
# --workflows .github/workflows/test-docs-scripts-frontend.yaml \
# --matrix os:ubuntu-24.04 \
# -P ubuntu-24.04=catthehacker/ubuntu:act-24.04
# ```
on:
push:
branches: [main, develop]
pull_request:
jobs:
test-frontend-scripts:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Make scripts executable
run: |
chmod +x website/docs/developers/scripts/frontend/*.sh
- name: Load versions
id: versions
uses: ./.github/actions/load-versions
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ steps.versions.outputs.node-version }}
cache: 'npm'
cache-dependency-path: website/package-lock.json
- name: Install Angular CLI using documentation script
run: |
bash website/docs/developers/scripts/frontend/install-angular-cli.sh
- name: Install gtimeout on macOS
if: runner.os == 'macOS'
run: |
brew install coreutils
# Create symlink for timeout command
sudo ln -sf /usr/local/bin/gtimeout /usr/local/bin/timeout
- name: Test install dependencies script
run: |
bash website/docs/developers/scripts/frontend/install-dependencies.sh
- name: Test build production script
run: |
bash website/docs/developers/scripts/frontend/build-production.sh
- name: Test format code script
run: |
bash website/docs/developers/scripts/frontend/format-code.sh
- name: Test build webnode script
run: |
bash website/docs/developers/scripts/frontend/build-webnode.sh
- name: Prepare for Cypress tests (Ubuntu 22.04)
if: matrix.os == 'ubuntu-22.04'
run: |
bash website/docs/developers/scripts/frontend/install-cypress-deps-ubuntu-22-04.sh
- name: Prepare for Cypress tests (Ubuntu 24.04)
if: matrix.os == 'ubuntu-24.04'
run: |
bash website/docs/developers/scripts/frontend/install-cypress-deps-ubuntu-24-04.sh
# Note: Cypress works out of the box on macOS, no additional dependencies needed