|
1 | 1 | name: Release packages (Work in Progress, a dry run only) |
| 2 | +run-name: "Create ${{ inputs.type }} release from ${{ inputs.release_ref }} by ${{ github.actor }}" |
2 | 3 |
|
3 | 4 | on: |
4 | 5 | workflow_dispatch: |
5 | 6 | inputs: |
| 7 | + release_ref: |
| 8 | + description: Upstream git ref to create the release from |
| 9 | + required: true |
| 10 | + type: string |
| 11 | + type: |
| 12 | + description: Release type |
| 13 | + required: true |
| 14 | + type: choice |
| 15 | + options: |
| 16 | + - snapshot |
| 17 | + - official |
6 | 18 | workspaces: |
7 | 19 | description: A comma-separated list of workspaces to release |
8 | 20 | required: false |
9 | 21 | type: string |
| 22 | + dry_run: |
| 23 | + description: Dry run (do not publish the packages) |
| 24 | + required: true |
| 25 | + type: boolean |
10 | 26 |
|
11 | 27 | #permissions: |
12 | 28 | # id-token: write # Required for OIDC |
13 | 29 | # contents: read |
14 | 30 |
|
15 | 31 | jobs: |
16 | | - checks: |
17 | | - name: Checks |
| 32 | + lint_and_unit_tests: |
| 33 | + name: Run lint and unit tests |
| 34 | + runs-on: ubuntu-latest |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v4 |
| 37 | + with: |
| 38 | + ref: ${{ inputs.release_ref }} |
| 39 | + persist-credentials: false |
| 40 | + - uses: actions/setup-node@v6 |
| 41 | + with: |
| 42 | + node-version-file: .nvmrc |
| 43 | + cache: yarn |
| 44 | + - name: Install dependencies |
| 45 | + run: yarn install --immutable |
| 46 | + - name: Build local packages |
| 47 | + run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run build |
| 48 | + # TODO: Uncomment when code formatting is fixed in eui-theme-common and eui-theme-borealis |
| 49 | + # This is prepared in the upstream/build/gh-release-action branch |
| 50 | + # - name: Lint |
| 51 | + # run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run lint |
| 52 | + - name: Unit tests |
| 53 | + run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run test-unit |
| 54 | + cypress_tests: |
| 55 | + name: Run cypress tests |
18 | 56 | runs-on: ubuntu-latest |
19 | 57 | steps: |
20 | 58 | - uses: actions/checkout@v4 |
21 | 59 | with: |
| 60 | + ref: ${{ inputs.release_ref }} |
22 | 61 | persist-credentials: false |
23 | 62 | - uses: actions/setup-node@v6 |
24 | 63 | with: |
25 | 64 | node-version-file: .nvmrc |
26 | 65 | cache: yarn |
27 | 66 | - name: Install dependencies |
28 | 67 | run: yarn install --immutable |
29 | | - - name: Run tests |
30 | | - run: yarn workspaces foreach -A run test-ci |
| 68 | + - name: Build local packages |
| 69 | + run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run build |
| 70 | + - name: Cypress tests |
| 71 | + run: yarn workspaces foreach --all --parallel --topological-dev --exclude @elastic/eui-website --exclude @elastic/eui-monorepo --exclude @elastic/eui-docgen run test-cypress |
0 commit comments