mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 20:49:55 +00:00
ci: format
This commit is contained in:
parent
b05cbc9101
commit
e53fb7f8ed
3 changed files with 42 additions and 1 deletions
29
.github/workflows/format.yml
vendored
Normal file
29
.github/workflows/format.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Format
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: 1.2.19
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Run format
|
||||
run: bun run format
|
||||
env:
|
||||
CI: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue