feat(dir): ️ enable caching in migration pipeline

This commit is contained in:
Collin Barrett 2024-06-14 12:19:32 -05:00
parent 2f39cb1b33
commit 44a1f1f2cf

View file

@ -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 }}