👍 feat(docs): adding docs and navigations #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 Code | |
on: ['push', 'pull_request'] | |
jobs: | |
lint: | |
name: Lint Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Setup Bun Environment | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Lint the code | |
run: bun run lint | |
format: | |
name: Format Code | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Setup Bun Environment | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Format the code | |
run: bun run format |