try non-blacksmith #38
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: Tusk Drift API Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" # or the current Go version required by tusk-drift-cli | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run Tusk Drift trace tests | |
| uses: Use-Tusk/drift-action@userns-mapping | |
| with: | |
| cache-key: ${{ runner.os }}-tusk-drift-${{ hashFiles('.tusk/config.yaml') }} | |
| api-key: ${{ secrets.TUSK_DRIFT_API_KEY }} | |
| run-command: tusk run -c -p --ci --validate-suite-if-default-branch --enable-service-logs | |
| cli-source: source | |
| - name: Print service logs | |
| if: always() | |
| run: | | |
| for f in .tusk/logs/*.log; do | |
| echo "=== $f ===" | |
| cat "$f" | |
| done |