EDM-1580 extend Events system MVP #1088
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - release* | |
| jobs: | |
| preflight-check: | |
| # Prevents running the workflow when a PR is marked as draft. | |
| runs-on: ubuntu-latest | |
| outputs: | |
| skip: ${{ steps.check.outputs.skip }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| - name: Check if PR is draft | |
| id: check | |
| run: | | |
| if [[ "${{ github.event.pull_request.draft }}" == "true" ]]; then | |
| skip=true | |
| else | |
| skip=false | |
| fi | |
| echo "skip=${skip}" >> $GITHUB_OUTPUT | |
| echo "skip=${skip}" | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Attempt a build | |
| run: npm run build | |
| - name: Run eslint | |
| run: npm run lint | |
| build-standalone: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Attempt a build | |
| run: npm run build | |
| build-ocp: | |
| name: Build ocp plugin | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Attempt a build | |
| run: npm run build:ocp | |
| integration-tests: | |
| needs: preflight-check | |
| if: needs.preflight-check.outputs.skip == 'false' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: lts/* | |
| - name: Run integration tests | |
| uses: cypress-io/github-action@v6 | |
| with: | |
| install-command: npm ci | |
| build: npm run build | |
| config-file: libs/cypress/cypress.config.ts | |
| browser: chrome | |
| start: npm run integration-tests:ci | |
| wait-on: 'http://localhost:9000' | |
| wait-on-timeout: 60 |