Skip to content

Commit

Permalink
🔧 project: use bun package manager and test
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Jun 5, 2024
1 parent a54c373 commit fa6dad6
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 10,256 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
files: ['test/**/*'],
extends: ['plugin:mocha/recommended', 'plugin:chai-expect/recommended', 'plugin:chai-friendly/recommended'],
rules: {
'node/no-missing-import': ['error', { tryExtensions: ['.ts', '.js', '.json'], allowModules: ['bun:test'] }],
'mocha/no-mocha-arrows': 'off',
'mocha/no-exclusive-tests': 'error',
},
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.lockb binary diff=lockb
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: oven-sh/setup-bun@v1

- run: npm install
- run: npm test
- run: bun install
- run: bun run test

- run: curl https://raw.githubusercontent.com/Tenderly/tenderly-cli/master/scripts/install-linux.sh | bash
- run: tenderly login --authentication-method access-key --access-key ${{ secrets.TENDERLY_ACCESS_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: oven-sh/setup-bun@v1

- run: npm install
- run: npm test
- run: bun install
- run: bun run test
5 changes: 0 additions & 5 deletions .mocharc.js

This file was deleted.

Binary file added actions/bun.lockb
Binary file not shown.
Loading

0 comments on commit fa6dad6

Please sign in to comment.