feat(sdk-python): add structured error handling and initial test setup #900
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: CI - UI React | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
defaults: | |
run: | |
working-directory: packages/ui/react | |
jobs: | |
detect-changes: | |
name: Detect changes in UI-React | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
changes: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
changes: | |
- 'packages/ui/react/**' | |
build: | |
name: Build UI-React | |
needs: detect-changes | |
if: ${{ needs.detect-changes.outputs.changes == 'true' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [20] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
persist-credentials: true | |
fetch-depth: 0 | |
- name: Use node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: install | |
run: npm ci --ignore-scripts | |
- name: build | |
run: npm run build | |
- name: lint | |
run: npm run lint | |
- name: test | |
run: npm test | |
verify-build: | |
name: Verify build of UI-React | |
needs: [build, detect-changes] | |
if: success() || failure() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Fail if build did not succeed | |
run: | | |
if [ "${{ needs.build.result }}" != "success" ]; then | |
echo "❌ Build job failed or was cancelled" | |
exit 1 | |
fi | |
echo "✅ Build job succeeded" |