-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
3,042 additions
and
2,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: {} | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
concurrency: | ||
group: ci-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: "Tests" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wyvox/action-setup-pnpm@v2 | ||
with: | ||
node-version: 18 | ||
- name: Lint | ||
run: pnpm lint | ||
- name: Run Tests | ||
run: pnpm test:ember | ||
|
||
floating: | ||
name: "Floating Dependencies" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wyvox/action-setup-pnpm@v2 | ||
with: | ||
node-version: 18 | ||
args: '--no-lockfile' | ||
- name: Run Tests | ||
run: pnpm test:ember | ||
|
||
try-scenarios: | ||
name: ${{ matrix.try-scenario }} | ||
runs-on: ubuntu-latest | ||
needs: "test" | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
try-scenario: | ||
- ember-lts-4.8 | ||
- ember-lts-4.12 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- embroider-safe | ||
- embroider-optimized | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wyvox/action-setup-pnpm@v2 | ||
with: | ||
node-version: 18 | ||
- name: Run Tests | ||
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Release | |
|
||
on: workflow_dispatch | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# skip in CI | ||
[ -n "$CI" ] && exit 0 | ||
|
||
# lint commit message | ||
pnpm commitlint --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# skip in CI | ||
[ -n "$CI" ] && exit 0 | ||
|
||
# lint staged files | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
# Contributing to ember-uikit | ||
# How To Contribute | ||
|
||
## Coding style | ||
## Installation | ||
|
||
* **Commit messages** ember-uikit uses [semantic release](https://github.com/semantic-release/semantic-release) to automate the process of making new releases. That requires all commit messages to adhere to a specific format, namely [conventional commits](https://www.conventionalcommits.org/). The format of the commit messages is checked automaticaly during CI. | ||
* **Ember** ember-uikit uses the [ember](https://github.com/ember-cli/eslint-plugin-ember) coding style. | ||
* **Prettier** Install prettier for automatic code formatting. This is also enforced by the CI. | ||
* **Actions** Use closure actions. We prefer dasherized action names like `on-click` rather than `onClick`. | ||
- `git clone <repository-url>` | ||
- `cd ember-uikit` | ||
- `pnpm install` | ||
|
||
## CI and CD | ||
## Linting | ||
|
||
Travis CI will take care of testing and deploying the demo app. You don't have to care about it. | ||
- `pnpm lint` | ||
- `pnpm lint:fix` | ||
|
||
## Running tests | ||
|
||
- `pnpm test` – Runs the test suite on the current Ember version | ||
- `pnpm test:ember --server` – Runs the test suite in "watch mode" | ||
- `pnpm test:ember-compatibility` – Runs the test suite against multiple Ember versions | ||
|
||
## Running the dummy application | ||
|
||
- `pnpm start` | ||
- Visit the dummy application at [http://localhost:4200](http://localhost:4200). | ||
|
||
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/). |
Oops, something went wrong.