From 5b4e1ef7c19d45da5bd409b3b3d37da28ee9f7b1 Mon Sep 17 00:00:00 2001 From: Volodymyr Gerun Date: Fri, 9 Aug 2024 19:40:04 +0300 Subject: [PATCH] ci: test pnpm --- .github/workflows/check.yml | 94 ++++++++++++++++++------------------- .github/workflows/knip.yml | 34 ++++++++++++-- 2 files changed, 76 insertions(+), 52 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a0f074c..fe7fdab 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,54 +1,54 @@ -name: Check -on: - workflow_dispatch: - pull_request: - types: - - opened - - synchronize - push: - branches: - - main -jobs: - lint: - name: ESLint and TypeScript - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 +# name: Check +# on: +# workflow_dispatch: +# pull_request: +# types: +# - opened +# - synchronize +# push: +# branches: +# - main +# jobs: +# lint: +# name: ESLint and TypeScript +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* +# - name: Set up Node.js +# uses: actions/setup-node@v4 +# with: +# node-version: lts/* - - name: Set up latest Yarn - uses: threeal/setup-yarn-action@v2.0.0 - with: - version: latest - cache: true +# - name: Set up latest Yarn +# uses: threeal/setup-yarn-action@v2.0.0 +# with: +# version: latest +# cache: true - - name: Check ESLint - run: yarn lint +# - name: Check ESLint +# run: yarn lint - - name: Check TypeScript - run: yarn typecheck - test: - name: Tests - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 +# - name: Check TypeScript +# run: yarn typecheck +# test: +# name: Tests +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* +# - name: Set up Node.js +# uses: actions/setup-node@v4 +# with: +# node-version: lts/* - - name: Set up latest Yarn - uses: threeal/setup-yarn-action@v2.0.0 - with: - version: latest - cache: true +# - name: Set up latest Yarn +# uses: threeal/setup-yarn-action@v2.0.0 +# with: +# version: latest +# cache: true - - name: Check Tests - run: yarn test +# - name: Check Tests +# run: yarn test diff --git a/.github/workflows/knip.yml b/.github/workflows/knip.yml index bfad082..f9c0d3e 100644 --- a/.github/workflows/knip.yml +++ b/.github/workflows/knip.yml @@ -7,6 +7,27 @@ on: - opened - synchronize jobs: + # knip: + # name: Knip + # runs-on: ubuntu-latest + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + + # - name: Set up Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: lts/* + + # - name: Set up latest Yarn + # uses: threeal/setup-yarn-action@v2.0.0 + # with: + # version: latest + # cache: true + + # - name: Check Knip + # continue-on-error: true + # run: yarn knip knip: name: Knip runs-on: ubuntu-latest @@ -14,16 +35,19 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set up latest pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: lts/* + cache: 'pnpm' - - name: Set up latest Yarn - uses: threeal/setup-yarn-action@v2.0.0 - with: - version: latest - cache: true + - name: Install dependencies + run: pnpm i - name: Check Knip continue-on-error: true