Skip to content

Commit

Permalink
Fix running create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilzu committed Jul 15, 2024
1 parent ea452ae commit 9344bcf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
name: Create
strategy:
matrix:
os: [ubuntu, windows, macos]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu]
node-version: [22.x]
package-manager: [npm, yarn, pnpm]
runs-on: ${{ matrix.os }}-latest
steps:
Expand All @@ -39,18 +39,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm install --production
- run: npm install --global .
- run: ${{ matrix.package-manager }} install
env:
NODE_ENV: production

- name: Create empty package.json for pnpm
run: |
with open("package.json", "w") as f:
f.write('{}')
shell: python
working-directory: ${{ runner.temp }}
- run: npm install --global .
if: matrix.package-manager == 'npm'
- run: yarn link
if: matrix.package-manager == 'yarn'
- run: pnpm link --global
if: matrix.package-manager == 'pnpm'
- run: ${{ matrix.package-manager }} exec create-ts-node new-project

- run: ${{ matrix.package-manager }} create ts-node new-project
working-directory: ${{ runner.temp }}
- run: ${{ matrix.package-manager }} install
working-directory: ${{ runner.temp }}/new-project
Expand Down

0 comments on commit 9344bcf

Please sign in to comment.