Skip to content

Commit 094cda1

Browse files
feat(repo): switch to bun (#191)
* switch to bun * workflows * terraform-docs: automated action --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fd95493 commit 094cda1

31 files changed

+955
-4932
lines changed

.editorconfig

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/github-ip-ranges.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
uses: ExpediaGroup/github-helpers@v1
5252
with:
5353
helper: create-pr
54-
title: 'fix: update Github IP ranges'
54+
title: "fix: update Github IP ranges"
5555
body: The GitHub IP ranges for hooks have changed on the [meta endpoint](https://api.github.com/meta).
5656
head: github-ip-range-update
5757
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

.github/workflows/publish.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16-
- name: Setup Node
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version-file: .nvmrc
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v1
2018

2119
- name: Install
22-
run: npm ci
20+
run: bun i
2321

2422
- name: Build
25-
run: npm run build
23+
run: bun run build
2624

2725
- name: Inject Mozilla Cert Bundles
2826
run: curl https://curl.se/ca/cacert.pem -o build/public-certs.pem

.github/workflows/release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Release
2+
13
on:
24
push:
35
branches:
@@ -9,10 +11,16 @@ jobs:
911
steps:
1012
- name: Checkout
1113
uses: actions/checkout@v4
14+
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
1220
with:
13-
fetch-depth: 0
21+
node-version: latest
1422

1523
- name: Create Release
16-
run: npx semantic-release@v19.0.5 --debug --no-ci
24+
run: bunx semantic-release
1725
env:
1826
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

.github/workflows/test.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414

15-
- name: Setup Node
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version-file: .nvmrc
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
1917

2018
- name: Install
21-
run: npm ci
19+
run: bun i
2220

2321
- name: Format
24-
run: npm run format-check
22+
run: bun run format-check
2523

26-
- name: Test
27-
run: npm run test
24+
- name: Type Check
25+
run: bun tsc
2826

2927
- name: Build
30-
run: npm run build
28+
run: bun run build
29+
30+
- name: Test
31+
run: bun run test
3132

3233
docs:
3334
runs-on: ubuntu-latest

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
2-
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.71.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
4-
hooks:
5-
- id: terraform_fmt
6-
- id: terraform_docs
7-
#- id: terraform_validate
8-
- id: terraform_tflint
9-
args:
10-
- 'args=--deep'
11-
- 'args=--enable-rule=terraform_documented_variables'
12-
- id: terraform_tfsec
2+
- repo: https://github.com/antonbabenko/pre-commit-terraform
3+
rev: v1.71.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
4+
hooks:
5+
- id: terraform_fmt
6+
- id: terraform_docs
7+
#- id: terraform_validate
8+
- id: terraform_tflint
9+
args:
10+
- "args=--deep"
11+
- "args=--enable-rule=terraform_documented_variables"
12+
- id: terraform_tfsec

.prettierrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.releaserc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins:
2-
- - '@semantic-release/commit-analyzer'
2+
- - "@semantic-release/commit-analyzer"
33
- preset: angular
44
releaseRules:
55
- breaking: true
@@ -12,8 +12,8 @@ plugins:
1212
release: patch
1313
- scope: no-release
1414
release: false
15-
- '@semantic-release/release-notes-generator'
16-
- - '@semantic-release/github'
15+
- "@semantic-release/release-notes-generator"
16+
- - "@semantic-release/github"
1717
- assets:
1818
- proxy-lambda.zip
1919
branches:

0 commit comments

Comments
 (0)