Temporary set test cases to things that pass #2
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: ENS Resolution Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| RPC_URL: ${{ secrets.RPC_URL }} | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21" | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Install Python packages (if any) | |
| run: | | |
| for dir in packages/*/; do | |
| if [ -f "$dir/pyproject.toml" ]; then | |
| echo "Installing Python dependencies for $dir" | |
| (cd "$dir" && pip install -e ".[test]") | |
| fi | |
| done | |
| - name: Run all tests | |
| run: bun run test | |
| - name: Aggregate results | |
| if: always() | |
| run: bun run aggregate | |
| - name: Print results to job summary | |
| if: always() | |
| run: | | |
| if [ -f results/latest.md ]; then | |
| echo "## ENS Resolution Test Results" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| cat results/latest.md >> $GITHUB_STEP_SUMMARY | |
| fi | |
| # - name: Upload results | |
| # uses: actions/upload-artifact@v4 | |
| # if: always() | |
| # with: | |
| # name: test-results | |
| # path: | | |
| # results/latest.md | |
| # results/latest.csv | |
| # packages/*/results.json |