Skip to content

Commit

Permalink
Test creating a new project with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilzu committed Jul 15, 2024
1 parent e749cb2 commit 313b670
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm test

create:
name: Create a project with npm
strategy:
matrix:
os: [ubuntu, windows, macos]
node-version: [18.x, 20.x, 22.x]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install --production
- run: npm link --global .

- run: npm init ts-node new-project
working-directory: ${{ runner.temp }}
- run: npm install
working-directory: ${{ runner.temp }}/new-project
- run: npm run build
working-directory: ${{ runner.temp }}/new-project
- run: npm test
working-directory: ${{ runner.temp }}/new-project

0 comments on commit 313b670

Please sign in to comment.