e2e api tests and deploy workflows #5
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, develop ] | |
| pull_request: | |
| branches: [ '**' ] | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: [self-hosted, Linux, X64] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run unit tests | |
| run: make test | |
| connectivity-tests: | |
| name: Backend Connectivity Tests | |
| runs-on: [self-hosted, Linux, X64] | |
| needs: unit-tests | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Export repository variables | |
| uses: ./.github/actions/export-repository-variables | |
| with: | |
| vars_json: ${{ toJSON(vars) }} | |
| - name: Run connectivity tests | |
| run: make test-connectivity | |
| integration-tests: | |
| name: Integration Tests (RPC + Sync) | |
| runs-on: [self-hosted, Linux, X64] | |
| needs: connectivity-tests | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Export repository variables | |
| uses: ./.github/actions/export-repository-variables | |
| with: | |
| vars_json: ${{ toJSON(vars) }} | |
| - name: Run integration tests | |
| run: make test-integration ARGS="-v" | |
| e2e-tests: | |
| name: E2E Tests (Blockbook API) | |
| runs-on: [self-hosted, Linux, X64] | |
| needs: integration-tests | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Export repository variables | |
| uses: ./.github/actions/export-repository-variables | |
| with: | |
| vars_json: ${{ toJSON(vars) }} | |
| - name: Run e2e tests | |
| run: make e2e ARGS="-v" |