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

start using pnpm #188

Merged
merged 2 commits into from
Jun 25, 2024
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
72 changes: 31 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,41 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Volta
uses: volta-cli/action@v4
- name: Node Modules Cache
id: cache-npm
uses: actions/cache@v3
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
path: |
.npm
node_modules/
key: ci-npm-${{ hashFiles('package-lock.json') }}
version: 8
NullVoxPopuli marked this conversation as resolved.
Show resolved Hide resolved
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- name: Install Dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --cache .npm
run: pnpm i --frozen-lockfile
- name: Lint
run: npm run lint
- name: Run Tests
run: . bin/restore-env.sh && node_modules/.bin/ember test
run: pnpm ember test

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 8

steps:
- uses: actions/checkout@v3
- name: Use Volta
uses: volta-cli/action@v4
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- name: Install Dependencies
run: npm i --cache .npm
run: pnpm install --no-lockfile
- name: Run Tests
run: CI=true node_modules/.bin/ember test
run: CI=true pnpm ember test

try-scenarios:
name: ${{ matrix.try-scenario }}
Expand Down Expand Up @@ -79,29 +82,16 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Volta
uses: volta-cli/action@v4
- name: Stash package-lock.json for cache key
run: cp package-lock.json __cache-key
- name: Node Modules Cache
id: cache-npm
uses: actions/cache@v3
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
path: |
.npm
node_modules/
package.json
package-lock.json
__env
key: ci-npm-v3-${{ matrix.try-scenario }}-${{ hashFiles('config/ember-try.js', '__cache-key') }}
restore-keys: |
ci-npm-${{ hashFiles('package-lock.json') }}
version: 8
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- name: Install Dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --cache .npm
run: pnpm i --frozen-lockfile
- name: Ember-Try Setup
if: steps.cache-npm.outputs.cache-hit != 'true'
run: node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup --- bin/stash-env.sh
- name: Run Tests
run: . bin/restore-env.sh && CI=true node_modules/.bin/ember test
run: pnpm ember try:one ${{ matrix.try-scenario }}
1 change: 0 additions & 1 deletion bin/restore-env.sh

This file was deleted.

1 change: 0 additions & 1 deletion bin/stash-env.sh

This file was deleted.

Loading