Skip to content

Commit

Permalink
chore: update github actions to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocastro committed Jun 30, 2024
1 parent d8865b6 commit e265266
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
- master
tags:
- v*
pull_request: {}

concurrency:
Expand All @@ -19,16 +21,21 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint
run: npm run lint
run: pnpm lint
- name: Run Tests
run: npm run test
run: pnpm test

floating:
name: "Floating Dependencies"
Expand All @@ -37,14 +44,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm install --no-package-lock
run: pnpm install --frozen-lockfile
- name: Run Tests
run: npm run test
run: pnpm test

try-scenarios:
name: ${{ matrix.try-scenario }}
Expand All @@ -66,12 +78,17 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
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 }} --skip-cleanup
working-directory: test-app
13 changes: 9 additions & 4 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- uses: kategengler/[email protected]
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: 'ember-draggable-modifiers'
working-directory: 'packages/ember-draggable-modifiers'

0 comments on commit e265266

Please sign in to comment.