From ae88231216dc340d039e7189a566944d0caac6a8 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Tue, 4 Jun 2024 18:20:29 -0700 Subject: [PATCH] Navigate to proper directory --- .github/workflows/build-and-test.yml | 31 +++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 656762c..24afdae 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -36,21 +36,24 @@ jobs: testandcoverage: name: Test and Coverage runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 18.x - cache: 'npm' - - name: Install Node Dependencies and run the tests - run: cd spezi-invitation-code && npm ci && npm test - env: - CI: TRUE - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} + - name: Checkout code + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Navigate to spezi-invitation-code directory + run: cd spezi-invitation-code + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test uploadcoveragereport: name: Upload Coverage Report needs: [buildandtest, buildandtestuitests]