2023-06-02 19:35:55 +00:00
|
|
|
name: test-ui
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'CHANGELOG.md'
|
|
|
|
- '.changelog/**'
|
|
|
|
- '.tours/**'
|
|
|
|
- 'contributing/**'
|
|
|
|
- 'demo/**'
|
|
|
|
- 'dev/**'
|
|
|
|
- 'e2e/**'
|
|
|
|
- 'integrations/**'
|
|
|
|
- 'pkg/**'
|
|
|
|
- 'scripts/**'
|
|
|
|
- 'terraform/**'
|
|
|
|
- 'website/**'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release/**
|
|
|
|
- test-ui
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'CHANGELOG.md'
|
|
|
|
- '.changelog/**'
|
|
|
|
- '.tours/**'
|
|
|
|
- 'contributing/**'
|
|
|
|
- 'demo/**'
|
|
|
|
- 'dev/**'
|
|
|
|
- 'e2e/**'
|
|
|
|
- 'integrations/**'
|
|
|
|
- 'pkg/**'
|
|
|
|
- 'scripts/**'
|
|
|
|
- 'terraform/**'
|
|
|
|
- 'website/**'
|
|
|
|
|
|
|
|
jobs:
|
2023-06-20 22:10:44 +00:00
|
|
|
pre-test:
|
2023-06-02 19:35:55 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-06-15 14:38:50 +00:00
|
|
|
timeout-minutes: 30
|
2023-06-20 21:56:58 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ui
|
2023-06-20 22:10:44 +00:00
|
|
|
outputs:
|
|
|
|
nonce: ${{ steps.nonce.outputs.nonce }}
|
2023-06-02 19:35:55 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: yarn install
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn install --frozen-lockfile
|
2023-06-02 19:35:55 +00:00
|
|
|
- name: lint:js
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn run lint:js
|
2023-06-02 19:35:55 +00:00
|
|
|
- name: lint:hbs
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn run lint:hbs
|
2023-06-20 22:10:44 +00:00
|
|
|
- id: nonce
|
|
|
|
name: nonce
|
|
|
|
run: echo "nonce=${{ github.run_id }}-$(date +%s)" >> "$GITHUB_OUTPUT"
|
|
|
|
|
2023-06-20 19:43:45 +00:00
|
|
|
tests:
|
|
|
|
needs:
|
2023-06-20 22:10:44 +00:00
|
|
|
- pre-test
|
2023-06-20 21:56:58 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
2023-06-22 15:31:49 +00:00
|
|
|
continue-on-error: true
|
2023-06-20 21:56:58 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ui
|
2023-06-20 19:43:45 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
partition: [1, 2, 3, 4]
|
|
|
|
split: [4]
|
2023-06-20 21:56:58 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: yarn install
|
|
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: ember exam
|
|
|
|
env:
|
|
|
|
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
2023-06-20 22:10:44 +00:00
|
|
|
PERCY_PARALLEL_NONCE: ${{ needs.pre-test.outputs.nonce }}
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn exam:parallel --split=${{ matrix.split }} --partition=${{ matrix.partition }}
|
2023-06-20 19:43:45 +00:00
|
|
|
finalize:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
2023-06-20 21:56:58 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ui
|
2023-06-20 19:43:45 +00:00
|
|
|
needs:
|
2023-06-20 22:10:44 +00:00
|
|
|
- pre-test
|
2023-06-20 19:43:45 +00:00
|
|
|
- tests
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: yarn install
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn install --frozen-lockfile
|
2023-06-20 19:43:45 +00:00
|
|
|
- name: finalize
|
2023-06-02 19:35:55 +00:00
|
|
|
env:
|
|
|
|
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
2023-06-20 22:10:44 +00:00
|
|
|
PERCY_PARALLEL_NONCE: ${{ needs.pre-test.outputs.nonce }}
|
2023-06-20 21:56:58 +00:00
|
|
|
run: yarn percy build:finalize
|
2023-06-02 19:35:55 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|