Implement clientmode #530
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' | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| lint: | |
| name: Lint | |
| uses: ./.github/workflows/lint.yaml | |
| build: | |
| name: Build | |
| uses: ./.github/workflows/build.yaml | |
| build-snapshot: | |
| name: Build snapshots | |
| uses: ./.github/workflows/build-snapshots.yaml | |
| e2e: | |
| name: E2E | |
| uses: ./.github/workflows/e2e.yaml | |
| # A single job that succeeds if all jobs listed under 'needs' succeed. | |
| # This allows to configure a single job as a required check. | |
| # The 'needed' jobs then can be changed through pull-requests. | |
| all-jobs-succeeded: | |
| name: All jobs succeeded | |
| if: always() | |
| # the if clauses below have to reflect the number of jobs listed here | |
| needs: | |
| - lint | |
| - build | |
| - build-snapshot | |
| - e2e | |
| env: | |
| RESULTS: ${{ join(needs.*.result, ',') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Success" | |
| # we expect all required jobs to have success result | |
| if: env.RESULTS == 'success,success,success,success' | |
| run: true | |
| shell: bash | |
| - name: "Failure" | |
| # we expect all required jobs to have success result, fail otherwise | |
| if: env.RESULTS != 'success,success,success,success' | |
| run: false | |
| shell: bash |