Parcourir la source

Update backend_general.yml

AppFlowy.IO il y a 3 ans
Parent
commit
826be05494
1 fichiers modifiés avec 14 ajouts et 14 suppressions
  1. 14 14
      .github/workflows/backend_general.yml

+ 14 - 14
.github/workflows/backend_general.yml

@@ -66,21 +66,21 @@ jobs:
             --no-default-features
             --no-default-features
             --locked
             --locked
 
 
-        - name: Migrate database
-          working-directory: backend/
-          run: |
-            sudo apt-get install libpq-dev -y
-            SKIP_DOCKER=true ./backend/scripts/init_database.sh
+      - name: Migrate database
+        working-directory: backend/
+        run: |
+          sudo apt-get install libpq-dev -y
+          SKIP_DOCKER=true ./backend/scripts/init_database.sh
 
 
-        - name: Check sqlx-data.json is up-to-date
-          working-directory: backend/
-          run: |
-            cargo sqlx prepare --check -- --bin backend
+      - name: Check sqlx-data.json is up-to-date
+        working-directory: backend/
+        run: |
+          cargo sqlx prepare --check -- --bin backend
 
 
-        - name: Run cargo test
-          working-directory: backend/
-          uses: actions-rs/cargo@v1
-          with:
-            command: test
+      - name: Run cargo test
+        uses: actions-rs/cargo@v1
+        with:
+           path: "backend/"
+           command: test