-
Notifications
You must be signed in to change notification settings - Fork 863
[Release automation] Setup workflow - unit and e2e tests #9213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tkajtoch
merged 4 commits into
elastic:main
from
tkajtoch:build/basic-release-workflow-setup
Nov 14, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9447275
build: update the release workflow to run unit and e2e tests and add …
tkajtoch efac382
chore: remove obsolete scripts from root package.json
tkajtoch e3be27f
chore: bring back start and build echo scripts in root package.json
tkajtoch bff7192
build: make unit test commands consistent
tkajtoch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,71 @@ | ||
| name: Release packages (Work in Progress, a dry run only) | ||
| run-name: "Create ${{ inputs.type }} release from ${{ inputs.release_ref }} by ${{ github.actor }}" | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_ref: | ||
| description: Upstream git ref to create the release from | ||
| required: true | ||
| type: string | ||
| type: | ||
| description: Release type | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - snapshot | ||
| - official | ||
| workspaces: | ||
| description: A comma-separated list of workspaces to release | ||
| required: false | ||
| type: string | ||
| dry_run: | ||
| description: Dry run (do not publish the packages) | ||
| required: true | ||
| type: boolean | ||
|
|
||
| #permissions: | ||
| # id-token: write # Required for OIDC | ||
| # contents: read | ||
|
|
||
| jobs: | ||
| checks: | ||
| name: Checks | ||
| lint_and_unit_tests: | ||
| name: Run lint and unit tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.release_ref }} | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: yarn | ||
| - name: Install dependencies | ||
| run: yarn install --immutable | ||
| - name: Build local packages | ||
| run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run build | ||
| # TODO: Uncomment when code formatting is fixed in eui-theme-common and eui-theme-borealis | ||
| # This is prepared in the upstream/build/gh-release-action branch | ||
| # - name: Lint | ||
| # run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run lint | ||
| - name: Unit tests | ||
| run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run test-unit | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so pretty... 🥹 |
||
| cypress_tests: | ||
| name: Run cypress tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.release_ref }} | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: yarn | ||
| - name: Install dependencies | ||
| run: yarn install --immutable | ||
| - name: Run tests | ||
| run: yarn workspaces foreach -A run test-ci | ||
| - name: Build local packages | ||
| run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run build | ||
| - name: Cypress tests | ||
| run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run test-cypress | ||
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
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.