From cd3ea6c3b1158a4f620bd0920287f8c908fd1469 Mon Sep 17 00:00:00 2001 From: jkauker Date: Fri, 14 Feb 2025 11:51:06 +0000 Subject: [PATCH] added github actions to devcontaienr + updated github action --- .devcontainer/devcontainer.json | 3 ++- .github/workflows/node.js.yml | 24 ++++++++++++++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e0abd7f..959f3ef 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,7 +19,8 @@ "tomoki1207.pdf", "xabikos.JavaScriptSnippets", "qwtel.sqlite-viewer", - "xabikos.JavaScriptSnippets" + "xabikos.JavaScriptSnippets", + "github.vscode-github-actions" ] } }, diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 58b023a..3626814 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,9 +23,21 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci --prefix api - - run: npm ci --prefix app - - run: npm run build --prefix api - - run: npm run build --prefix app - - run: npm test --prefix api - - run: npm test --prefix app + - name: Install dependencies for API + run: npm ci + working-directory: ./api + - name: Install dependencies for App + run: npm ci + working-directory: ./app + - name: Build API + run: npm run build + working-directory: ./api + - name: Build App + run: npm run build + working-directory: ./app + - name: Test API + run: npm test + working-directory: ./api + - name: Test App + run: npm test + working-directory: ./app \ No newline at end of file