Skip to content

Commit

Permalink
chore: moved to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Nov 25, 2024
1 parent 27d0027 commit b34e5c1
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 6,314 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20.10.0"

- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache

- run: ${{ toJSON(inputs) }}
shell: cat {0}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ubiquity/action-conventional-commits@master
9 changes: 3 additions & 6 deletions .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- uses: oven-sh/setup-bun@v2

- name: Install cspell
run: yarn add cspell
run: bun add cspell

- name: Run cspell
run: yarn format:cspell
run: bun run format:cspell
6 changes: 2 additions & 4 deletions .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- uses: oven-sh/setup-bun@v2

- uses: actions/checkout@master
with:
fetch-depth: 0

- name: Jest With Coverage
run: yarn install --immutable --immutable-cache --check-cache && yarn test
run: bun install --frozen-lockfile && bun run test

- name: Add Jest Report to Summary
if: always()
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.10.0
- uses: oven-sh/setup-bun@v2

- name: Install toolchain
run: yarn install
run: bun install --frozen-lockfile

- name: Store PR number
run: echo ${{ github.event.number }} > pr-number.txt

- name: Run Knip
run: yarn knip || yarn knip --reporter json > knip-results.json
run: bun run knip || bun run knip --reporter json > knip-results.json

- name: Upload knip result
if: failure()
Expand Down
11 changes: 2 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,5 @@ outputs:
description: "Conditionally merge pull requests after a timeout."
value: ${{ steps.main.outputs.result }}
runs:
using: "composite"
steps:
- run: |
yarn --cwd ${{ github.action_path }} --production=true
id: install
shell: bash
- run: yarn --cwd ${{ github.action_path }} start
shell: bash
id: main
using: "node20"
main: "dist/index.js"
Binary file added bun.lockb
Binary file not shown.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
"ubiquity",
"open-source"
],
"type": "module",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/plugin-rest-endpoint-methods": "^13.2.6",
"@sinclair/typebox": "0.34.3",
"@sinclair/typebox": "0.34.8",
"@ubiquity-os/plugin-sdk": "^1.1.0",
"@ubiquity-os/ubiquity-os-logger": "1.3.2",
"dotenv": "16.4.5",
Expand Down Expand Up @@ -65,9 +66,9 @@
"prettier": "3.3.2",
"ts-jest": "29.1.5",
"ts-node": "10.9.2",
"tsx": "4.16.2",
"typescript": "5.6.2",
"typescript-eslint": "8.14.0"
"tsx": "^4.19.2",
"typescript": "5.5.4",
"typescript-eslint": "^8.15.0"
},
"lint-staged": {
"*.ts": [
Expand All @@ -82,6 +83,5 @@
"extends": [
"@commitlint/config-conventional"
]
},
"packageManager": "yarn@1.22.22"
}
}
Loading

0 comments on commit b34e5c1

Please sign in to comment.