This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
chore(deps): update dependency node to v20 #55
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
name: Format and Lint with bun | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
format_and_lint: | |
name: Format and Lint Code with bun | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.bun/install/cache | |
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb') }} | |
restore-keys: ${{ runner.os }}-bun- | |
- name: Install Dependencies | |
run: bun install | |
- name: Format Code | |
run: bun format | |
- name: Lint Code | |
run: bun lint-run |