Skip to content

Commit e9aee85

Browse files
committed
feature: @putout/plugin-github: update-actions: oven-sh/setup-bun
1 parent 0975599 commit e9aee85

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

packages/plugin-github/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ You can override versions with:
175175
+ uses: EndBug/add-and-commit@v9
176176
```
177177

178+
`oven-sh/setup-bun@v1`:
179+
180+
```diff
181+
steps:
182+
- uses: oven-sh/setup-bun@v1
183+
+ uses: oven-sh/setup-bun@v2
184+
```
185+
178186
## install-bun
179187

180188
> Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.
@@ -235,4 +243,6 @@ Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/e03cc6ff4d
235243
+ run: bun i --no-save
236244
```
237245

246+
## License
247+
238248
MIT
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
__putout_processor_yaml({
2+
"name": "Node CI",
3+
"on": ["push", "pull_request"],
4+
"jobs": {
5+
"build": {
6+
"runs-on": "ubuntu-latest",
7+
"steps": [{
8+
"uses": "oven-sh/setup-bun@v2"
9+
}]
10+
}
11+
}
12+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
__putout_processor_yaml({
2+
"name": "Node CI",
3+
"on": [
4+
"push",
5+
"pull_request"
6+
],
7+
"jobs": {
8+
"build": {
9+
"runs-on": "ubuntu-latest",
10+
"steps": [
11+
{
12+
"uses": "oven-sh/setup-bun@v1"
13+
}
14+
]
15+
}
16+
}
17+
});

packages/plugin-github/lib/update-actions/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ export const {
1414
'docker/setup-qemu-action': 'v3',
1515
'coverallsapp/github-action': 'v2',
1616
'EndBug/add-and-commit': 'v9',
17+
'oven-sh/setup-bun': 'v2',
1718
});

packages/plugin-github/lib/update-actions/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ test('plugin-github: update-actions: transform: cache', (t) => {
2727
t.end();
2828
});
2929

30+
test('plugin-github: update-actions: transform: bun', (t) => {
31+
t.transform('bun');
32+
t.end();
33+
});
34+
3035
test('plugin-github: update-actions: transform with options: options', (t) => {
3136
t.transformWithOptions('options', {
3237
actions: {

0 commit comments

Comments
 (0)