Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .ember-cli

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintignore

This file was deleted.

68 changes: 0 additions & 68 deletions .eslintrc.js

This file was deleted.

80 changes: 35 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ concurrency:
cancel-in-progress: true

jobs:
test:
name: 'Tests'
lint:
name: "Lints"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
Expand All @@ -29,14 +30,13 @@ jobs:
run: pnpm install
- name: Lint
run: pnpm lint
- name: Run Ember Tests
run: pnpm test:ember
- name: Run Node Tests
run: pnpm test:node

floating:
name: 'Floating Dependencies'
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

steps:
- uses: actions/checkout@v4
Expand All @@ -46,30 +46,19 @@ jobs:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-lockfile
run: pnpm install --frozen-lockfile
- name: Run Tests
run: pnpm test:ember
- name: Run Node Tests
run: pnpm test:node
run: pnpm test
# For the Try Scenarios
- id: set-matrix
run: |
echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT


try-scenarios:
name: ${{ matrix.try-scenario }}
timeout-minutes: 15
floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
needs: 'test'

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
Expand All @@ -79,24 +68,18 @@ jobs:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install
run: pnpm install --no-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
run: pnpm test

typescript-compatibility:
name: Type checking - ${{ matrix.typescript-scenario }}
try-scenarios:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: 'test'

needs: "test"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
typescript-scenario:
- typescript-4.2
- typescript-4.3
- typescript-4.4
- typescript-4.5
- typescript-next
matrix: ${{fromJson(needs.test.outputs.matrix)}}

steps:
- uses: actions/checkout@v4
Expand All @@ -105,7 +88,14 @@ jobs:
with:
node-version: 18
cache: pnpm
- name: Apply Scenario
run: |
pnpm dlx @embroider/try apply ${{ matrix.name }}

- name: Install Dependencies
run: pnpm install
- name: Type checking
run: ./node_modules/.bin/ember try:one --config-path="./config/ember-try-typescript.js" ${{ matrix.typescript-scenario }}
run: pnpm install --no-lockfile
- name: Run Tests
run: |
pnpm test

env: ${{ matrix.env }}
34 changes: 34 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Because this library needs to be built,
# we can't easily point package.json files at the git repo for easy cross-repo testing.
#
# This workflow brings back that capability by placing the compiled assets on a "dist" branch
# (configurable via the "branch" option below)
name: Push dist

on:
push:
branches:
- main
- master

jobs:
push-dist:
name: Push dist
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 13 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/
dist/
dist-tests/
declarations/

# dependencies
/bower_components/
/node_modules/
# from scenarios
tmp/
config/optional-features.json
ember-cli-build.js

# misc
/.env*
/.pnp*
/.sass-cache
/.eslintcache
/connect.lock
/coverage/
/libpeerconnection.log
/npm-debug.log*
/testem.log
/yarn-error.log
# npm/pnpm/yarn pack output
*.tgz

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
# deps & caches
node_modules/
.eslintcache
.prettiercache
46 changes: 0 additions & 46 deletions .npmignore

This file was deleted.

25 changes: 8 additions & 17 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/
/dist-*/
/declarations/

# misc
/coverage/
!.*
.eslintcache
.lint-todo/

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
pnpm-lock.yaml
config/ember-cli-update.json
*.yaml
*.yml
*.md
*.html
Loading
Loading