From 6164081393ae402e2862288118b5fd54c0316dd6 Mon Sep 17 00:00:00 2001 From: lassejaco Date: Thu, 2 Nov 2023 13:27:12 +0100 Subject: [PATCH] working dir --- .github/workflows/devcon-archive.yml | 10 ++++++++++ .github/workflows/devcon.yml | 11 ++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/devcon-archive.yml b/.github/workflows/devcon-archive.yml index e8e3a6d47..5b5b79688 100644 --- a/.github/workflows/devcon-archive.yml +++ b/.github/workflows/devcon-archive.yml @@ -18,40 +18,50 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js + working_directory: devcon-archive uses: actions/setup-node@v1 with: node-version: "12.x" - name: Change to relevant directory + working_directory: devcon-archive run: cd devcon-archive - name: Create env file + working_directory: devcon-archive run: | touch .env echo DB_CONNECTION_STRING='${{ secrets.DB_CONNECTION_STRING }}' >> .env echo ELASTIC_ENDPOINT='${{ secrets.ELASTIC_ENDPOINT }}' >> .env - name: Install dependencies + working_directory: devcon-archive run: yarn - name: Run Prettier // Format + working_directory: devcon-archive run: yarn format - name: Run Eslint // Lint + working_directory: devcon-archive run: yarn lint - name: Run Build + working_directory: devcon-archive run: yarn build - name: Serve build to test against + working_directory: devcon-archive run: yarn serve & - uses: microsoft/playwright-github-action@v1 - name: Run your tests + working_directory: devcon-archive run: npm test - uses: actions/upload-artifact@v2 + working_directory: devcon-archive with: name: screenshots path: screenshots diff --git a/.github/workflows/devcon.yml b/.github/workflows/devcon.yml index fc46eac6c..f33f9685c 100644 --- a/.github/workflows/devcon.yml +++ b/.github/workflows/devcon.yml @@ -22,36 +22,41 @@ jobs: with: node-version: "12.x" - - name: Change to relevant directory - run: cd devcon-archive - - name: Create env file + working-directory: devcon run: | touch .env echo DB_CONNECTION_STRING='${{ secrets.DB_CONNECTION_STRING }}' >> .env echo ELASTIC_ENDPOINT='${{ secrets.ELASTIC_ENDPOINT }}' >> .env - name: Install dependencies + working-directory: devcon run: yarn - name: Run Prettier // Format + working-directory: devcon run: yarn format - name: Run Eslint // Lint + working-directory: devcon run: yarn lint - name: Run Build + working-directory: devcon run: yarn build - name: Serve build to test against + working-directory: devcon run: yarn serve & - uses: microsoft/playwright-github-action@v1 - name: Run your tests + working-directory: devcon run: npm test - uses: actions/upload-artifact@v2 + working-directory: devcon with: name: screenshots path: screenshots