From b2c084d6521e435f6a5ee2f5270d7b6500c23c66 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 13 Dec 2023 12:07:33 +0700 Subject: [PATCH] ci: use `threeal/yarn-install-action` in workflows (#128) --- .github/workflows/build.yaml | 11 +---------- .github/workflows/test.yaml | 21 +++------------------ 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7f28f1b..448b02f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,17 +17,8 @@ jobs: with: node-version: latest - - name: Enable Yarn - run: corepack enable yarn - - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - name: Install Dependencies - run: yarn install + uses: threeal/yarn-install-action@v1.0.0 - name: Build Package run: yarn build && git diff --exit-code HEAD diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e255da2..6cee293 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,21 +17,12 @@ jobs: with: node-version: latest - - name: Enable Yarn - run: corepack enable yarn + - name: Install Dependencies + uses: threeal/yarn-install-action@v1.0.0 - name: Check Yarn Version run: yarn set version stable && git diff --exit-code HEAD - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - - name: Install Dependencies - run: yarn install - - name: Check Format run: yarn format && git diff --exit-code HEAD @@ -50,14 +41,8 @@ jobs: with: node-version: latest - - name: Cache Dependencies - uses: actions/cache@v3.3.2 - with: - path: .yarn - key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - name: Install Dependencies - run: corepack enable && yarn install + uses: threeal/yarn-install-action@v1.0.0 - name: Test Package run: yarn test