-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 804 Bytes
/
beautify.yaml
File metadata and controls
36 lines (29 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# ******** BEAUTIFY *********
#
# This GitHub Actions workflow runs two jobs:
#
# 1. `lint`: Checks the code for linting issues using the Bun runtime.
# 2. `format`: Formats the code using the Bun runtime.
#
# The workflow checks out the code, sets up the Bun environment, and then runs the
# respective linting and formatting commands.
name: Beautify
on: [push, pull_request]
permissions:
contents: read
pull-requests: write
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v5
- name: Setup bun environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Check the code
run: bun run check