Switch to using bun #208
Workflow file for this run
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: Build and Test | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'ecosystem-automation/**' | |
| - 'ecosystem-explorer/**' | |
| - 'build-and-test.yml' | |
| - 'scripts/**' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'ecosystem-automation/**' | |
| - 'ecosystem-explorer/**' | |
| - 'build-and-test.yml' | |
| - 'scripts/**' | |
| jobs: | |
| check-copyright-headers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| - name: Check copyright headers | |
| run: uv run python scripts/check_copyright.py | |
| test-ecosystem-automation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Run collector-watcher tests | |
| run: | | |
| cd ecosystem-automation/collector-watcher | |
| uv run pytest tests/ --cov=collector_watcher --cov-report=term-missing --cov-report=json | |
| - name: Run java-instrumentation-watcher tests | |
| run: | | |
| cd ecosystem-automation/java-instrumentation-watcher | |
| uv run pytest tests/ --cov=java_instrumentation_watcher --cov-report=term-missing --cov-report=json | |
| - name: Run configuration-watcher tests | |
| run: | | |
| cd ecosystem-automation/configuration-watcher | |
| uv run pytest tests/ --cov=configuration_watcher --cov-report=term-missing --cov-report=json | |
| test-ecosystem-explorer: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ecosystem-explorer | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: "1.3.11" | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run lint | |
| run: bun run lint | |
| - name: Run tests | |
| run: bun run test | |
| - name: Run integration tests | |
| run: bun run test:integration | |
| - name: Run build | |
| run: bun run build |