Skip to content

Commit

Permalink
remove wyvox/action-setup-pnpm to realign with ember-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Feb 17, 2024
1 parent 9d9d979 commit 484dbd8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
39 changes: 24 additions & 15 deletions files/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: <%= pnpm ? 'wyvox/action-setup-pnpm@v3' : 'actions/setup-node@v3' %>
- uses: actions/checkout@v4<% if (pnpm) { %>
- uses: pnpm/action-setup@v3
with:
node-version: 16<% if (!pnpm) { %>
cache: <%= yarn ? 'yarn' : 'npm' %>
version: 8<% } %>
- uses: actions/setup-node@v4
with:
node-version: 18
cache: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm' %>
- name: Install Dependencies
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %><%}%>
run: <%= pnpm ? 'pnpm install --frozen-lockfile' : yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
- name: Lint
run: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm run' %> lint
- name: Run Tests
Expand All @@ -34,13 +37,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: <%= pnpm ? 'wyvox/action-setup-pnpm@v3' : 'actions/setup-node@v3' %>
- uses: actions/checkout@v4<% if (pnpm) { %>
- uses: pnpm/action-setup@v3
with:
version: 8<% } %>
- uses: actions/setup-node@v4
with:
node-version: 16<% if (!pnpm) { %>
cache: <%= yarn ? 'yarn' : 'npm' %>
node-version: 18
cache: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm' %>
- name: Install Dependencies
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %><%}%>
run: <%= pnpm ? 'pnpm install --no-lockfile' : yarn ? 'yarn install --no-lockfile' : 'npm install --no-package-lock' %>
- name: Run Tests
run: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm run' %> test

Expand All @@ -62,13 +68,16 @@ jobs:
- embroider-optimized

steps:
- uses: actions/checkout@v3
- uses: <%= pnpm ? 'wyvox/action-setup-pnpm@v3' : 'actions/setup-node@v3' %>
- uses: actions/checkout@v4<% if (pnpm) { %>
- uses: pnpm/action-setup@v3
with:
version: 8<% } %>
- uses: actions/setup-node@v4
with:
node-version: 16<% if (!pnpm) { %>
cache: <%= yarn ? 'yarn' : 'npm' %>
node-version: 18
cache: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm' %>
- name: Install Dependencies
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %><%}%>
run: <%= pnpm ? 'pnpm install --frozen-lockfile' : yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
working-directory: <%= testAppInfo.location %>
14 changes: 8 additions & 6 deletions files/.github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
name: Push dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3<% if (pnpm) {%>
- uses: wyvox/action-setup-pnpm@v3<%} else {%>
- name: Install Node
uses: actions/setup-node@v3
- uses: actions/checkout@v4<% if (pnpm) { %>
- uses: pnpm/action-setup@v3
with:
cache: '<%= yarn ? 'yarn' : 'npm' %>'<% } if (yarn || npm) { %>
version: 8<% } %>
- uses: actions/setup-node@v4
with:
node-version: 18
cache: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm' %>
- name: Install Dependencies
run: <%= yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %><%}%>
run: <%= pnpm ? 'pnpm install --frozen-lockfile' : yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
- uses: kategengler/[email protected]
with:
branch: dist
Expand Down

0 comments on commit 484dbd8

Please sign in to comment.