Skip to content

Commit

Permalink
check for pending model changes in fw-lite workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jan 15, 2025
1 parent b06d583 commit 38dbfbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/fw-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: './frontend/package.json'
- name: Install Task
uses: arduino/setup-task@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'FieldWorks Lite' step
Uses Step
uses 'arduino/setup-task' with ref 'v2', not a pinned commit hash
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set Version
id: setVersion
Expand All @@ -50,6 +54,9 @@ jobs:
echo "VERSION=v$(date --rfc-3339=date)-$shortSha" >> ${GITHUB_OUTPUT}
echo "SEMVER_VERSION=$(date +%Y.%-m.%-d)" >> ${GITHUB_OUTPUT}
- name: Check for pending EF model changes
run: task api:has-pending-model-changes

- name: Build viewer
working-directory: frontend/viewer
run: |
Expand Down
8 changes: 8 additions & 0 deletions backend/FwLite/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ tasks:
dir: ./FwLiteWeb
cmd: dotnet watch --no-hot-reload

tool-restore:
cmd: dotnet tool restore
add-migration:
deps: [ tool-restore ]
label: Add Migration
desc: 'Usage: task add-migration "MigrationName"'
dir: ./LcmCrdt
cmd: dotnet ef migrations add {{.CLI_ARGS}}

has-pending-model-changes:
deps: [ tool-restore ]
dir: ./LcmCrdt
cmds:
- dotnet ef migrations has-pending-model-changes

maui-windows:
label: Run Maui Windows, requires vite dev server to be running, use task fw-lite-win in root
Expand Down

0 comments on commit 38dbfbc

Please sign in to comment.