fix(auth): use org token region_url as API base URL #6391
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 1.x | |
| - release/** | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| jobs: | |
| lint: | |
| name: Lint | |
| uses: ./.github/workflows/lint.yml | |
| test: | |
| name: Test | |
| uses: ./.github/workflows/test.yml | |
| test_node: | |
| name: Test Node | |
| uses: ./.github/workflows/test_node.yml | |
| with: | |
| triggered-by-release: ${{ github.event_name == 'push' && startsWith(github.ref_name, 'release/') }} | |
| test_swift: | |
| name: Test Swift | |
| uses: ./.github/workflows/swift-test.yml | |
| danger: | |
| name: Run Danger Checks | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| statuses: write | |
| if: ${{ github.event_name == 'pull_request' }} | |
| steps: | |
| - name: Run Danger | |
| uses: getsentry/github-workflows/danger@607fed74f812e69201531a5185b6c3c57caa4e89 # 3.4.0 | |
| required: | |
| name: Check required jobs | |
| runs-on: ubuntu-24.04 | |
| needs: [lint, test, test_node, test_swift, danger] | |
| if: always() | |
| steps: | |
| - name: Check for failure | |
| if: ${{ | |
| needs.lint.result != 'success' || | |
| needs.test.result != 'success' || | |
| needs.test_node.result != 'success' || | |
| needs.test_swift.result != 'success' || | |
| (needs.danger.result != 'success' && needs.danger.result != 'skipped') | |
| }} | |
| run: | | |
| echo "One or more jobs failed" | |
| exit 1 |