From ad4b28cb0b2260dd9ec4a42fabd62511b2de7942 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Mon, 17 Jun 2024 19:00:57 +0300 Subject: [PATCH] ci: use pnpm --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/lint.yaml | 22 ---------------------- 2 files changed, 33 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3180fd5 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI + +on: [push, pull_request] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: pnpm + + - name: Install ni + run: npm i -g @antfu/ni + + - name: Install dependencies + id: dependencies + run: nci + + - name: Lint + if: steps.dependencies.outcome == 'success' + run: nr lint diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index d0963cb..0000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Linting - -on: [push, pull_request] - -jobs: - lint-format: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - - name: Install dependencies - run: npm ci - - - name: Linting - run: npm run lint