Skip to content

Commit

Permalink
Update ember-try / ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Dec 11, 2023
1 parent 09d2fc0 commit e8ba94d
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 48 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: 18.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: 18.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: 18.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: 18.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
54 changes: 54 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Docs CI

on:
push:
branches:
- main
- master
pull_request:

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: 18.x
cache: 'pnpm'

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

- name: Lint
run: pnpm --filter docs lint

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

steps:
- uses: actions/checkout@v3

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

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

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

- name: Run Tests
run: pnpm --filter docs test:ember
30 changes: 0 additions & 30 deletions .github/workflows/push-dist.yml

This file was deleted.

30 changes: 30 additions & 0 deletions docs/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,29 @@ const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function () {
return {
usePnpm: true,
scenarios: [
{
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'@ember/test-helpers': '^2.9.4',
'ember-cli': '~4.12.2',
'ember-qunit': '^6.0.0',
'ember-resolver': '^8.0.0',
'ember-source': '~3.28.0',
},
},
},
{
name: 'ember-lts-4.4',
npm: {
devDependencies: {
'ember-resolver': '^8.0.0',
'ember-source': '~4.4.0',
},
},
},
{
name: 'ember-lts-4.8',
npm: {
Expand All @@ -22,6 +44,14 @@ module.exports = async function () {
},
},
},
{
name: 'ember-5.4',
npm: {
devDependencies: {
'ember-source': '~5.4.0',
},
},
},
{
name: 'ember-release',
npm: {
Expand Down
30 changes: 30 additions & 0 deletions test-app/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,29 @@ const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function () {
return {
usePnpm: true,
scenarios: [
{
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'@ember/test-helpers': '^2.9.4',
'ember-cli': '~4.12.2',
'ember-qunit': '^6.0.0',
'ember-resolver': '^8.0.0',
'ember-source': '~3.28.0',
},
},
},
{
name: 'ember-lts-4.4',
npm: {
devDependencies: {
'ember-resolver': '^8.0.0',
'ember-source': '~4.4.0',
},
},
},
{
name: 'ember-lts-4.8',
npm: {
Expand All @@ -22,6 +44,14 @@ module.exports = async function () {
},
},
},
{
name: 'ember-5.4',
npm: {
devDependencies: {
'ember-source': '~5.4.0',
},
},
},
{
name: 'ember-release',
npm: {
Expand Down

0 comments on commit e8ba94d

Please sign in to comment.