Merge pull request #364 from RoboFinSystems/feature/mercury-connection #894
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: Test CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| security-events: write # Required for Trivy SARIF upload to GitHub Security tab | |
| jobs: | |
| runner: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| outputs: | |
| runners_available: ${{ steps.check.outputs.runners_available }} | |
| runner_type: ${{ steps.check.outputs.runner_type }} | |
| runner_config: ${{ steps.check.outputs.runner_config }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ github.repository }} | |
| ref: ${{ github.ref }} | |
| token: ${{ github.token }} | |
| - name: Check runner availability | |
| id: check | |
| uses: RoboFinSystems/robosystems/.github/actions/select-runner@main | |
| with: | |
| runner_labels: ${{ vars.RUNNER_LABELS || 'github-hosted' }} | |
| runner_scope: ${{ vars.RUNNER_SCOPE || 'both' }} | |
| github_token: ${{ github.token }} | |
| test: | |
| needs: [runner] | |
| uses: ./.github/workflows/test.yml | |
| with: | |
| runner_config: ${{ needs.runner.outputs.runner_config }} | |
| secrets: inherit | |
| # Records the change class on every pull request, whoever opened it, and for | |
| # code changes requests the automated review and waits for it. Standard | |
| # changes (dependency bumps, manifests, docs) ride the test gate alone. The | |
| # action is shared from the platform repository; see its action.yml for the | |
| # path rule. This is the documented second reader that stands in for a human | |
| # approver in a single-maintainer repository. | |
| change-classification: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Classify the change and request the review | |
| uses: RoboFinSystems/robosystems/.github/actions/classify-change@main | |
| with: | |
| pr_number: ${{ github.event.pull_request.number }} | |
| github_token: ${{ github.token }} | |
| review_token: ${{ secrets.ACTIONS_TOKEN }} |