From 7223747b205274c147eb0a356bc94aba57e256b0 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:43:00 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1177277..7a4a8b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,22 +10,16 @@ on: jobs: ci: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - node: [14] + runs-on: ubuntu-latest steps: - name: Checkout ๐Ÿ›Ž - uses: actions/checkout@master + uses: actions/checkout@v2 - - name: Setup node env ๐Ÿ— - uses: actions/setup-node@v2.1.5 + - name: Setup Node.js ๐Ÿ— + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node }} - check-latest: true + node-version: 14 - name: Get yarn cache directory path ๐Ÿ›  id: yarn-cache-dir-path @@ -36,23 +30,16 @@ jobs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + key: ubuntu-latest-yarn-${{ hashFiles('new-web/yarn.lock') }} - name: Install dependencies ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป - run: yarn + working-directory: new-web + run: yarn install - - name: Run linter in root directory ๐Ÿ‘€ + - name: Run linter ๐Ÿ‘€ + working-directory: new-web run: yarn lint - - name: Run tests in root directory ๐Ÿงช - run: yarn test - - - name: Run tests in new-web directory ๐Ÿ“‚ + - name: Run tests ๐Ÿงช working-directory: new-web run: yarn test - - - name: Run lint in new-web directory ๐Ÿ“‚ - working-directory: new-web - run: yarn lint