Skip to content

Commit

Permalink
Merge branch 'cibernox:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wozny1989 authored Jun 26, 2024
2 parents ea56385 + 08463d2 commit 0cc7dea
Show file tree
Hide file tree
Showing 584 changed files with 28,907 additions and 71,378 deletions.
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

11 changes: 0 additions & 11 deletions .dependabot/config.yml

This file was deleted.

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

This file was deleted.

11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 15
labels:
- dependencies
versioning-strategy: increase-if-necessary
105 changes: 73 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,80 +6,121 @@ on:
- main
- master
pull_request: {}
schedule:
- cron: "0 3 * * 0" # every Sunday at 3am


concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm

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

- name: Lint
run: pnpm --filter ember-power-select lint

test:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10
needs: lint

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
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:ember
run: pnpm --filter test-app test:ember

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

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

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 14.x
cache: npm
node-version: 18.x
cache: pnpm

- name: Install Dependencies
run: npm install --no-shrinkwrap
run: pnpm install --frozen-lockfile

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

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

strategy:
fail-fast: false
matrix:
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-lts-5.4
- ember-lts-5.8
- ember-release
- ember-beta
- ember-canary
- ember-classic
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
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 }}
env:
EMBER_TRY_SCENARIO: ${{ matrix.try-scenario }}
run: pnpm --filter test-app test:ember-try $EMBER_TRY_SCENARIO
108 changes: 108 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Docs CI

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

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
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@v4

- uses: pnpm/action-setup@v3
with:
version: 8

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

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

- name: Run Tests
run: pnpm --filter docs test:ember

build-documentation:
name: Build documentation
runs-on: ubuntu-latest
needs: [lint, test]
timeout-minutes: 5
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/master'))
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

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

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

- name: Run Tests
run: pnpm --filter docs build

- name: Copy 404 page
run: cp ./docs/404.html ./docs/dist/404.html

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs/dist'

deploy-documentation:
name: Deploy documentation
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [lint, test, build-documentation]
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
35 changes: 35 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- uses: kategengler/[email protected]
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: 'ember-power-select'
34 changes: 10 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
# 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
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try

# broccoli-debug
/DEBUG/

# custom
/fastboot-dist
/pnpm-lock.ember-try.yaml
1 change: 0 additions & 1 deletion .netlify

This file was deleted.

Loading

0 comments on commit 0cc7dea

Please sign in to comment.