Dropdown
- add matchToggleWidth
#12858
Workflow file for this run
This file contains 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 - Components | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
env: | |
NODE_VERSION: '20.x' | |
concurrency: | |
group: ci-components-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
conditional-skip: | |
runs-on: ubuntu-latest | |
name: Get files changed and conditionally skip CI | |
outputs: | |
trigger-ci: ${{ steps.read-files.outputs.trigger-ci }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: read-files | |
run: ./.github/scripts/filter_changed_files.sh "packages/components" "packages/flight-icons/catalog.json" "showcase" ".github/workflows/ci-components.yml" "packages/tokens" | |
test: | |
name: "Tests" | |
runs-on: ubuntu-latest | |
needs: [conditional-skip] | |
if: needs.conditional-skip.outputs.trigger-ci == 'true' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install Node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Build Components | |
run: yarn build | |
working-directory: packages/components | |
- name: Lint Showcase | |
run: yarn run lint | |
working-directory: showcase | |
- name: Lint Components | |
run: yarn run lint | |
working-directory: packages/components | |
- name: Run Tests | |
run: yarn run test:ember:percy | |
working-directory: showcase | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_COMPONENTS }} | |
try-scenarios: | |
name: ${{ matrix.try-scenario }} | |
runs-on: ubuntu-latest | |
needs: 'test' | |
strategy: | |
fail-fast: false | |
matrix: | |
try-scenario: | |
- ember-lts-3.28 | |
- ember-lts-4.12 | |
# - ember-release | |
- ember-beta | |
# - ember-canary | |
- embroider-safe | |
# - embroider-optimized | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install Node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Build Components | |
run: yarn build | |
working-directory: packages/components | |
- name: Run Tests | |
working-directory: showcase | |
run: yarn ember try:one ${{ matrix.try-scenario }} | |
env: | |
PERCY_ENABLE: 0 | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false |