Skip to content

Commit 0eecd1c

Browse files
committed
feature: @putout/plugin-github: install-bun: update to v2
1 parent e9aee85 commit 0eecd1c

17 files changed

+75
-17
lines changed

.github/workflows/nodejs-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- 25.x
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: oven-sh/setup-bun@v1
18+
- uses: oven-sh/setup-bun@v2
1919
with:
2020
bun-version: latest
2121
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- 25.x
1717
steps:
1818
- uses: actions/checkout@v4
19-
- uses: oven-sh/setup-bun@v1
19+
- uses: oven-sh/setup-bun@v2
2020
with:
2121
bun-version: 1.2
2222
- name: Use Node.js ${{ matrix.node-version }}

packages/plugin-github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ steps:
200200
uses: actions/setup-node@v3
201201
with:
202202
node-version: ${{ matrix.node-version }}
203-
+ - uses: oven-sh/setup-bun@v1
203+
+ - uses: oven-sh/setup-bun@v2
204204
+ with:
205205
+ bun-version: latest
206206
```

packages/plugin-github/lib/install-bun/fixture/checkout-with-name-fix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ __putout_processor_yaml({
88
"name": "Checkout",
99
"uses": "actions/checkout@v1"
1010
}, {
11-
"uses": "oven-sh/setup-bun@v1",
11+
"uses": "oven-sh/setup-bun@v2",
1212
"with": {
1313
"bun-version": "latest"
1414
}

packages/plugin-github/lib/install-bun/fixture/install-bun-fix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ __putout_processor_yaml({
3434
"steps": [{
3535
"uses": "actions/checkout@v1"
3636
}, {
37-
"uses": "oven-sh/setup-bun@v1",
37+
"uses": "oven-sh/setup-bun@v2",
3838
"with": {
3939
"bun-version": "latest"
4040
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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": "actions/checkout@v1"
9+
}, {
10+
"uses": "oven-sh/setup-bun@v2",
11+
"with": {
12+
"bun-version": "latest"
13+
}
14+
}, {
15+
"name": "Use Node.js ${{ matrix.node-version }}",
16+
"uses": "actions/setup-node@v1",
17+
"with": {
18+
"node-version": "${{ matrix.node-version }}"
19+
}
20+
}, {
21+
"name": "Install Redrun",
22+
"run": "npm i redrun -g"
23+
}]
24+
}
25+
}
26+
});
27+
28+
__putout_processor_yaml({
29+
"name": "Node CI",
30+
"on": ["push", "pull_request"],
31+
"jobs": {
32+
"build": {
33+
"runs-on": "ubuntu-latest",
34+
"steps": [{
35+
"uses": "actions/checkout@v1"
36+
}, {
37+
"uses": "oven-sh/setup-bun@v1",
38+
"with": {
39+
"bun-version": "latest"
40+
}
41+
}, {
42+
"name": "Use Node.js ${{ matrix.node-version }}",
43+
"uses": "actions/setup-node@v1",
44+
"with": {
45+
"node-version": "${{ matrix.node-version }}"
46+
}
47+
}, {
48+
"name": "Install Redrun",
49+
"run": "npm i redrun -g"
50+
}]
51+
}
52+
}
53+
});

packages/plugin-github/lib/install-bun/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const {
66
__yaml,
77
} = operator;
88

9-
const BUN_USES = 'oven-sh/setup-bun@v1';
9+
const BUN_USES = 'oven-sh/setup-bun';
1010

1111
const BUN = template.ast(`({
12-
"uses": "${BUN_USES}",
12+
"uses": "${BUN_USES}@v2",
1313
"with": {
1414
"bun-version": "latest"
1515
}

packages/plugin-github/lib/install-bun/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ test('packages: install-bun: no report: wrong-place', (t) => {
3737
t.end();
3838
});
3939

40+
test('packages: install-bun: no report: installed', (t) => {
41+
t.noReport('installed');
42+
t.end();
43+
});
44+
4045
test('packages: install-bun: transform: checkout-with-name', (t) => {
4146
t.transform('checkout-with-name');
4247
t.end();

packages/plugin-github/test/fixture/add-continue-on-error-to-add-and-commit-fix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ __putout_processor_yaml({
77
"steps": [{
88
"uses": "actions/checkout@v4"
99
}, {
10-
"uses": "oven-sh/setup-bun@v1",
10+
"uses": "oven-sh/setup-bun@v2",
1111
"with": {
1212
"bun-version": "latest"
1313
}

packages/plugin-github/test/fixture/add-continue-on-error-to-coveralls-fix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ __putout_processor_yaml({
77
"steps": [{
88
"uses": "actions/checkout@v4"
99
}, {
10-
"uses": "oven-sh/setup-bun@v1",
10+
"uses": "oven-sh/setup-bun@v2",
1111
"with": {
1212
"bun-version": "latest"
1313
}

0 commit comments

Comments
 (0)