mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: github actions: use bun
This commit is contained in:
parent
99980c7f1d
commit
a5f93523c1
3 changed files with 11 additions and 7 deletions
7
.github/workflows/docker.yml
vendored
7
.github/workflows/docker.yml
vendored
|
|
@ -9,14 +9,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- uses: oven-sh/setup-bun@v1
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
- name: Use Node.js 16.x
|
- name: Use Node.js 16.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
- name: Install Redrun
|
- name: Install Redrun
|
||||||
run: npm i redrun -g
|
run: bun i redrun -g --no-save
|
||||||
- name: NPM Install
|
- name: NPM Install
|
||||||
run: npm install
|
run: bun i --no-save
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: redrun lint
|
run: redrun lint
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
||||||
7
.github/workflows/nodejs.yml
vendored
7
.github/workflows/nodejs.yml
vendored
|
|
@ -14,14 +14,17 @@ jobs:
|
||||||
- 20.x
|
- 20.x
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: oven-sh/setup-bun@v1
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install Redrun
|
- name: Install Redrun
|
||||||
run: npm i redrun -g
|
run: bun i redrun -g --no-save
|
||||||
- name: Install
|
- name: Install
|
||||||
run: npm install
|
run: bun i --no-save
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: redrun fix:lint
|
run: redrun fix:lint
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,7 @@
|
||||||
"fontello.json"
|
"fontello.json"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"webpack/apply-externals": "off",
|
"webpack/apply-externals": "off"
|
||||||
"github/convert-npm-to-bun": "off",
|
|
||||||
"github/install-bun": "off"
|
|
||||||
},
|
},
|
||||||
"match": {
|
"match": {
|
||||||
"base64": {
|
"base64": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue