Skip to content

CopySnippet: convert to TypeScript (HDS-2689) #10429

CopySnippet: convert to TypeScript (HDS-2689)

CopySnippet: convert to TypeScript (HDS-2689) #10429

Workflow file for this run

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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0
- name: Get changed files
id: read-files
run: ./.github/scripts/filter_changed_files.sh "packages/components" "packages/ember-flight-icons" "packages/flight-icons/catalog.json" "showcase" ".github/workflows/ci-components.yml"
test:
name: "Tests"
runs-on: ubuntu-latest
needs: [conditional-skip]
if: needs.conditional-skip.outputs.trigger-ci == 'true'
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock
- name: Install Dependencies
run: yarn install --immutable
- name: Build Icons
run: yarn build
working-directory: packages/ember-flight-icons
- 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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock
- name: Install Dependencies
run: yarn install --immutable
- name: Build Icons
run: yarn build
working-directory: packages/ember-flight-icons
- 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