Skip to content

Commit

Permalink
Switch to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Aug 9, 2023
1 parent 330b79d commit 6a52d78
Show file tree
Hide file tree
Showing 6 changed files with 2,703 additions and 13,896 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ 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:
test:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -23,13 +27,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
cache: npm
- name: Install Dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Lint
run: yarn lint
run: npm run lint
- name: Run Tests
run: yarn test:ember
run: npm run test:ember

floating:
name: "Floating Dependencies"
Expand All @@ -41,11 +45,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
cache: npm
- name: Install Dependencies
run: yarn install --no-lockfile
run: npm install --no-shrinkwrap
- name: Run Tests
run: yarn test:ember
run: npm run test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
Expand Down Expand Up @@ -74,8 +78,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
cache: npm
- name: Install Dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
11 changes: 5 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
## Installation

* `git clone <repository-url>`
* `cd my-addon`
* `yarn install`
* `cd ember-power-select`
* `npm install`

## Linting

* `yarn lint:hbs`
* `yarn lint:js`
* `yarn lint:js -- --fix`
* `npm run lint`
* `npm run lint:fix`

## Running tests

Expand All @@ -23,4 +22,4 @@
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
Loading

0 comments on commit 6a52d78

Please sign in to comment.