Skip to content

Commit

Permalink
chore: use pnpm for 11ty test fixture (#5692)
Browse files Browse the repository at this point in the history
* chore: use pnpm for 11ty test fixture

* chore: prepare corepack on ci

* chore: use pnpm version 7 to be compatible with node 14
  • Loading branch information
lukasholzer authored May 10, 2023
1 parent fe60d05 commit 5bae485
Show file tree
Hide file tree
Showing 16 changed files with 1,397 additions and 4,073 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
cache: npm
check-latest: true
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Install PNPM
run: |
corepack enable
corepack prepare pnpm@7.32.4 --activate
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Setup Deno
uses: denoland/setup-deno@v1
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/legacy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
cache: npm
check-latest: true
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Install PNPM
run: |
corepack enable
corepack prepare pnpm@7.32.4 --activate
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Setup Deno
uses: denoland/setup-deno@v1
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test:init": "run-s test:init:*",
"test:init:cli-version": "npm run start -- --version",
"test:init:cli-help": "npm run start -- --help",
"test:init:eleventy-deps": "npm ci --prefix tests/integration/eleventy-site --no-audit",
"test:init:eleventy-deps": "cd tests/integration/__fixtures__/eleventy-site && pnpm install --frozen-lockfile",
"test:init:hugo-deps": "npm ci --prefix tests/integration/__fixtures__/hugo-site --no-audit",
"test:dev:ava": "ava --verbose",
"test:dev:vitest": "vitest run tests/unit/ && vitest run tests/integration",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/130.eleventy.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { startDevServer } = require('./utils/dev-server.cjs')
const got = require('./utils/got.cjs')

test.before(async (t) => {
const server = await startDevServer({ cwd: path.join(__dirname, 'eleventy-site') })
const server = await startDevServer({ cwd: path.join(__dirname, '__fixtures__/eleventy-site') })

t.context.server = server
})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

1 comment on commit 5bae485

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 245 MB

Please sign in to comment.