export theory curve contours #326
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: Test Webview Client | |
| on: pull_request | |
| defaults: | |
| run: | |
| working-directory: ./refl1d/webview/client | |
| jobs: | |
| # test that app can build without issues | |
| test-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Checkout bumps source | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: bumps/bumps | |
| sparse-checkout: "bumps/webview/client" | |
| path: bumps | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install packages | |
| run: bun install | |
| - name: Use bumps code from source | |
| run: | | |
| cd ../../../bumps/bumps/webview/client | |
| bun install | |
| bun link | |
| cd ../../../../refl1d/webview/client | |
| bun link bumps-webview-client | |
| - name: Run test | |
| run: bun run build | |
| # Test that app is properly linted | |
| test-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install packages | |
| run: bun install | |
| - name: Run test | |
| run: bun run test:lint | |
| # Test that app is properly formatted | |
| test-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install packages | |
| run: bun install | |
| - name: Run test | |
| run: bun run test:format | |
| # test that app has no typescript errors | |
| test-types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Checkout bumps source | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: bumps/bumps | |
| sparse-checkout: "bumps/webview/client" | |
| path: bumps | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install packages | |
| run: bun install | |
| - name: Use bumps code from source | |
| run: | | |
| cd ../../../bumps/bumps/webview/client | |
| bun install | |
| bun link | |
| cd ../../../../refl1d/webview/client | |
| bun link bumps-webview-client | |
| - name: Run test | |
| run: bun run test:types | |
| # run unit tests | |
| # test-unit: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v6 | |
| # - name: Set up Bun | |
| # uses: oven-sh/setup-bun@v2 | |
| # - name: Install packages | |
| # run: bun install | |
| # - name: Run test | |
| # run: bun run test:unit | |
| # run end to end integration tests | |
| # test-e2e: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v6 | |
| # - name: Set up Bun | |
| # uses: oven-sh/setup-bun@v2 | |
| # - name: Install packages | |
| # run: bun install | |
| # - name: Install Playwright | |
| # run: bunx playwright install | |
| # - name: Run test | |
| # run: bun run test:e2e |