]> Nutra Git (v2) - nutratech/usda-sqlite.git/commitdiff
try fixing workflow yaml too
authorShane Jaroch <chown_tee@proton.me>
Sat, 2 Mar 2024 17:46:55 +0000 (12:46 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 2 Mar 2024 17:50:31 +0000 (12:50 -0500)
.github/workflows/test.yml

index b640d9ed98f2df7c5562a85ba6fc54ba2b03555d..a84b3ef79a74eb40ce4908932cebc34cc3fdaf1b 100644 (file)
@@ -19,29 +19,14 @@ jobs:
       - name: Extras / Count Lines of Source Code
         run: make extras/cloc
 
-      - name: Install requirements
-        run: make init
-
-      # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-      # Build [Dev] (and Deploy)
-      # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-      - name: Build (dev)
-        if: github.ref == 'refs/heads/dev'
-        run: pnpm build:dev
-
-      - name: Deploy (dev) [Copy static files over]
-        if: github.ref == 'refs/heads/dev'
-        run: rm -rf /var/www/app/* && mv build/* /var/www/app/
-
       # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       # Lint
       # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       - name: Lint
-        run: pnpm lint
+        run: make format
 
       - name: Check
-        run: pnpm check
+        run: git diff HEAD --quiet
 
       # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       # Build [Prod] (and Upload binary)
@@ -52,7 +37,7 @@ jobs:
         env:
           GH_TOKEN: ${{ github.token }}
         run: |
-          RELEASE_TAG=v$(jq -r .version package.json)
+          RELEASE_TAG=v$(python3 sql/latest_version.py)
           echo RELEASE_TAG=$RELEASE_TAG
           test -n "$RELEASE_TAG"
           # Test that github-cli is working