Skip to content

Commit

Permalink
chore: swap to pnpm and use directly lib for example
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Jan 18, 2025
1 parent 3bd1046 commit 724ff55
Show file tree
Hide file tree
Showing 10 changed files with 5,205 additions and 7,143 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@ jobs:
steps:
- name: Repository checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install latest npm
run: npm install -g npm
cache: pnpm

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Run lint
run: npm run lint
run: pnpm lint

- name: Run build
run: npm run build
run: pnpm build

- name: Run tests
run: npm run test:coverage
run: pnpm test:coverage

- name: Code coverage
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-manager-strict=false
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@ Fork the repository
Install dependencies

```sh
npm install
pnpm install
```

Make your proposed changes. Add tests if applicable, lint the code. Submit a pull request.

## Tests

```sh
npm run test
pnpm run test
```

## Lint

```sh
npm run lint
pnpm run lint
```
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cd duo_universal_nodejs/example

Install dependencies
```
npm install
pnpm install
```

## Run the application
Expand All @@ -25,7 +25,7 @@ npm install

2. Start the application
```
npm run start
pnpm run start
```

3. Navigate to http://localhost:3000
Expand Down
Loading

0 comments on commit 724ff55

Please sign in to comment.