Skip to content

Commit

Permalink
fix: swap to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Feb 23, 2024
1 parent 4cade2c commit aee5a09
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 19,063 deletions.
1 change: 0 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
exclude_patterns:
- '.yarn/'
- '**/__tests__/'
4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

55 changes: 23 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,45 @@ jobs:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
node-version: 18
cache: 'yarn'
bun-version: latest

- name: Install Packages
run: yarn install --immutable
run: bun install --frozen-lockfile

lint:
name: Lint
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
node-version: 18
cache: 'yarn'
bun-version: latest

- name: Install Packages
run: yarn install --immutable
run: bun install --frozen-lockfile

- name: Lint
run: yarn lint
run: bun lint

test:
name: Test
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
node-version: 18
cache: 'yarn'
bun-version: latest

- name: Install Packages
run: yarn install --immutable
run: bun install --frozen-lockfile

- name: Coverage
run: yarn run test:coverage
run: bun run test:coverage

- name: Coveralls
uses: coverallsapp/github-action@master
Expand All @@ -69,18 +63,16 @@ jobs:
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
node-version: 18
cache: 'yarn'
bun-version: latest

- name: Install Packages
run: yarn install --immutable
run: bun install --frozen-lockfile

- name: Build
run: yarn run build
run: bun run build

- uses: actions/upload-artifact@v2
with:
Expand All @@ -92,19 +84,18 @@ jobs:
runs-on: ubuntu-latest
needs: [lint, test, build]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
node-version: 18
bun-version: latest

- uses: actions/download-artifact@v3
with:
name: build
path: dist

- name: Deploy
run: yarn dlx semantic-release
run: bunx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ node_modules/
.DS_Store
coverage/
dist/

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
9 changes: 1 addition & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/bin/eslint.js

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/eslint/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .yarn/sdks/integrations.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsc

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsserver

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/lib/tsc.js

This file was deleted.

Loading

0 comments on commit aee5a09

Please sign in to comment.