Skip to content

Commit

Permalink
Use pnpm package manager
Browse files Browse the repository at this point in the history
... instead of `yarn`

see https://pnpm.io/
  • Loading branch information
Turbo87 committed Nov 4, 2021
1 parent e713c61 commit 0c1e6bd
Show file tree
Hide file tree
Showing 6 changed files with 11,321 additions and 11,539 deletions.
45 changes: 27 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,28 @@ on:
schedule:
- cron: '0 3 * * *' # daily, at 3am

env:
PNPM_VERSION: 6.19.0

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

steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}

- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
cache: pnpm

- name: install dependencies
run: yarn install

- name: lint
run: yarn lint
- run: pnpm install
- run: pnpm run lint

test:
name: Node Tests
Expand All @@ -38,16 +43,18 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}

- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: install dependencies
run: yarn install
cache: pnpm

- name: node tests
run: yarn test:node
- run: pnpm install
- run: pnpm run test:node

ember-try-scenarios:
name: Ember Tests (${{ matrix.test-suite }})
Expand All @@ -62,15 +69,17 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.0.1
with:
version: ${{ env.PNPM_VERSION }}

- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn

- name: install dependencies
run: yarn install
cache: pnpm

- name: test
- run: pnpm install
- run: pnpm run test:all -- --skip-cleanup
env:
TEST_SUITE: ${{ matrix.test-suite }}
run: yarn test:all --skip-cleanup
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.travis.yml
bower.json
ember-cli-build.js
pnpm-lock.yaml
RELEASE.md
testem.js
yarn.lock
Expand Down
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Once the prep work is completed, the actual release is straight forward:
* Next, ensure that you have installed your projects dependencies:

```
yarn install
pnpm install
```

* And last (but not least 😁) do your release:

```
yarn release
pnpm release
```

[release-it](https://github.com/release-it/release-it/) manages the actual
Expand Down
4 changes: 2 additions & 2 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = function() {
getChannelURL('canary'),
]).then((urls) => {
return {
useYarn: true,
command: process.env.TEST_SUITE ? `yarn ${process.env.TEST_SUITE}` : 'yarn test',
usePnpm: true,
command: process.env.TEST_SUITE ? `pnpm run ${process.env.TEST_SUITE}` : 'pnpm test',
useVersionCompatibility: true,
scenarios: [
{
Expand Down
Loading

0 comments on commit 0c1e6bd

Please sign in to comment.