From bf0a814b7a423187004d136358bdc562e4c4e20e Mon Sep 17 00:00:00 2001 From: MatiasG19 Date: Sun, 21 Apr 2024 19:12:07 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8d5341..bf2cccd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,12 +35,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.x" - name: Setup Clang Formatter uses: actions/checkout@v3 @@ -56,33 +56,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 18.x - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "YARN_CACHE_DIR_PATH=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: Cache yarn dependencies - uses: actions/cache@v3 - id: yarn-cache + uses: actions/setup-node@v4 with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.YARN_CACHE_DIR_PATH }} - **/node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: 20.x - name: Install dependecies working-directory: ${{ env.WEB_PATH }} - if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn --frozen-lockfile + run: npm ci - name: Check format working-directory: ${{ env.WEB_PATH }} - run: yarn check-format + run: npm run check-format