mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-17 20:18:24 +02:00
use autofix.ci
This commit is contained in:
parent
a00108bc0a
commit
5779b58502
2 changed files with 38 additions and 7 deletions
32
.github/workflows/format.yml
vendored
Normal file
32
.github/workflows/format.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: autofix.ci # Must be named this for autofix.ci to work
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🛠️ Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: 📦 Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: 🧹 Format
|
||||
run: npm run format
|
||||
|
||||
- name: 💾 Commit
|
||||
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
@ -24,19 +24,19 @@ jobs:
|
|||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
tests:
|
||||
name: Tests
|
||||
name: 🧪 Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
- name: 🛠️ Setup Bun
|
||||
uses: ./
|
||||
|
||||
- name: Install dependencies
|
||||
- name: 📦 Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Run tests
|
||||
- name: 🧪 Run tests
|
||||
run: bun test --coverage
|
||||
|
||||
setup-bun:
|
||||
|
@ -74,8 +74,7 @@ jobs:
|
|||
|
||||
- name: ▶️ Run Bun
|
||||
id: run_bun
|
||||
run: |
|
||||
bun --version
|
||||
run: bun --version
|
||||
|
||||
setup-bun-from-file:
|
||||
name: setup-bun from (${{ matrix.os }}, ${{ matrix.file.name }})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue