Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to a v2 addon #365

Merged
merged 8 commits into from
Nov 24, 2023
Merged
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
35 changes: 0 additions & 35 deletions .codeclimate.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .csslintrc

This file was deleted.

9 changes: 0 additions & 9 deletions .ember-cli

This file was deleted.

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

This file was deleted.

88 changes: 36 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,86 +3,70 @@ name: CI
on:
push:
branches:
- master
- main
- "v*"
pull_request:
- master
pull_request: {}

env:
FORCE_COLOR: 1
NODE_VERSION: 16.x
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

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

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- run: npm run lint:hbs
- run: npm run lint:js

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

steps:
- uses: actions/checkout@v3
- uses: mansona/npm-lockfile-version@v1
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- run: npm run test:ember

floating-dependencies:
name: Floating Dependencies
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm install --no-package-lock
- run: npm run test:ember
node-version: 16
cache: pnpm
- run: pnpm i --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Run Tests
run: pnpm --filter test-app test:ember

try-scenarios:
name: "ember-try: ${{ matrix.ember-try-scenario }}"
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
timeout-minutes: 10
needs: test
needs: 'test'

strategy:
fail-fast: false
matrix:
ember-try-scenario:
try-scenario:
- ember-lts-3.16
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery
- ember-classic
- embroider-safe
- embroider-optimized
- no-deprecations
- ember-release-no-deprecations

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci

- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
version: 8
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- run: pnpm i --frozen-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: test-app
16 changes: 10 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: '14'
- run: npm install -g npm@7
- run: npm install
version: 8
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- run: pnpm i --frozen-lockfile
- run: npx lint-to-the-future output -o lttfOutput --rootUrl ember-cli-notifications --previous-results https://mansona.github.io/ember-cli-notifications/data.json
working-directory: ember-cli-notifications
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./lttfOutput
publish_dir: ./ember-cli-notifications/lttfOutput
32 changes: 32 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- run: pnpm i --frozen-lockfile
- uses: kategengler/[email protected]
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ember-cli-notifications
30 changes: 12 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/
node_modules/

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

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
/pnpm-lock.ember-try.yaml

/.changelog/
35 changes: 0 additions & 35 deletions .npmignore

This file was deleted.

19 changes: 4 additions & 15 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/
# Prettier is also run from each package, so the ignores here
# protect against files that may not be within a package

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

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
/pnpm-lock.ember-try.yaml
Loading