From 85cd4ed30a0aa225f359821cdbb82dc1b2a6b25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Bl=C3=A1ha?= Date: Thu, 9 Dec 2021 21:31:56 +0100 Subject: [PATCH] Set working directory for github actions --- .github/workflows/CI.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 694ccf35f..15099b489 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,6 +10,9 @@ jobs: build-frontend: name: "Build frontend" runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/frontend steps: - name: "Checkout" uses: actions/checkout@v2.4.0 @@ -24,10 +27,6 @@ jobs: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- npm-dependencies-${{ runner.os }}- - - name: "Open frontend directory" - run: | - cd packages/frontend - - name: "Install NPM dependencies" run: | npm ci @@ -39,6 +38,9 @@ jobs: lint: name: "Lint" runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/collector steps: - name: "Checkout" uses: actions/checkout@v2.4.0 @@ -53,10 +55,6 @@ jobs: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- npm-dependencies-${{ runner.os }}- - - name: "Open collector directory" - run: | - cd packages/collector - - name: "Install NPM dependencies" run: | npm ci @@ -68,6 +66,9 @@ jobs: test: name: "Test" runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/collector steps: - name: "Checkout" uses: actions/checkout@v2.4.0 @@ -82,10 +83,6 @@ jobs: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- npm-dependencies-${{ runner.os }}- - - name: "Open collector directory" - run: | - cd packages/collector - - name: "Install NPM dependencies" run: | npm ci