From 2c713241dcbb2669384840a6aaf02fed210d8028 Mon Sep 17 00:00:00 2001 From: Mika Nevalainen Date: Mon, 14 Jun 2021 13:35:18 +0300 Subject: [PATCH] Try to fix lsf-cache issue in development --- .github/workflows/development.yml | 16 ++++++++++++---- .huskyrc.js | 6 ------ 2 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 .huskyrc.js diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index a84a4b3ee6..96e625e6e3 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -11,11 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 + + - name: Create LFS file list + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache with: - lfs: true - - - name: Checkout LFS objects - run: git lfs checkout + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull - name: setup node uses: actions/setup-node@v2.1.5 diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index f885385103..0000000000 --- a/.huskyrc.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - hooks: { - "pre-commit": "yarn run husky:pre-commit", - "pre-push": "yarn run husky:pre-push" - } -};