Skip to content

Commit

Permalink
Update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Nov 27, 2023
1 parent 8dd745b commit 3357f1b
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 46 deletions.
86 changes: 68 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,90 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm

- name: 'Install dependencies'
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm --filter ember-basic-dropdown lint

test:
name: "Tests"
runs-on: ubuntu-latest
needs: lint

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- uses: pnpm/[email protected]
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
run: pnpm install --frozen-lockfile

- name: Run Tests
run: npm run test
run: pnpm --filter test-app test:ember

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
needs: lint

steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run Tests
run: npm run test
run: pnpm --filter test-app test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: 'test'
continue-on-error: true
needs: test

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-5.4
- ember-release
- ember-beta
- ember-canary
Expand All @@ -63,12 +104,21 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- uses: pnpm/[email protected]
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: test-app
env:
EMBER_TRY_SCENARIO: ${{ matrix.try-scenario }}
run: pnpm --filter test-app test:ember-try $EMBER_TRY_SCENARIO
28 changes: 0 additions & 28 deletions .github/workflows/push-dist.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@ module('Integration | Component | basic-dropdown', function (hooks) {
</parent.Content>
</BasicDropdown>
`);

//open the nested dropdown
await click('.ember-basic-dropdown-trigger.parent');
assert.dom('.body-parent').exists('the parent dropdown is rendered');
Expand Down

0 comments on commit 3357f1b

Please sign in to comment.