From 44a1f1f2cfdcca79bbb73076f0c40f58f6c1c392 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Fri, 14 Jun 2024 12:19:32 -0500 Subject: [PATCH] =?UTF-8?q?feat(dir):=20=E2=9C=A8=E2=9A=A1=EF=B8=8F=20enab?= =?UTF-8?q?le=20caching=20in=20migration=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/directory-migrate.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/directory-migrate.yml b/.github/workflows/directory-migrate.yml index 65a7985c7..9998cc6e7 100644 --- a/.github/workflows/directory-migrate.yml +++ b/.github/workflows/directory-migrate.yml @@ -61,9 +61,19 @@ jobs: git revert --no-edit $PREVIOUS_MIGRATION_HASH fi + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + cache-dependency-path: services/Directory/FilterLists.Directory.Api/packages.lock.json + cache: true + - name: Install dotnet-ef run: dotnet tool install --global dotnet-ef + - name: Restore + run: dotnet restore --locked-mode + working-directory: ./services/Directory/FilterLists.Directory.Api + - name: Add Migration run: > dotnet ef migrations add ${{ github.event.number }}