From 0f05e532583fb12c50952c17955019e6a783fe24 Mon Sep 17 00:00:00 2001 From: Daaaai0809 Date: Fri, 19 Apr 2024 01:21:12 +0900 Subject: [PATCH] feat: add biome git workflows --- .github/workflows/biome.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/biome.yml diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml new file mode 100644 index 0000000..e980f94 --- /dev/null +++ b/.github/workflows/biome.yml @@ -0,0 +1,36 @@ +name: Code quality + +on: + push: + pull_request: + +jobs: + quality: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + - uses: pnpm/action-setup@v2 + with: + version: '9.0.1' + run_install: true + + - name: cache lockfile + uses: actions/cache@v3 + with: + path: | + node_modules + .pnpm + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: check + run: pnpm check