diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 00e6c252..83a2bb44 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -26,21 +26,30 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Navigate to website directory + working-directory: ResourceHub/website + run: pwd + - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: '14' + working-directory: ResourceHub/website - name: Install dependencies run: npm install + working-directory: ResourceHub/website - name: Run tests run: npm test + working-directory: ResourceHub/website - name: Install Vercel CLI run: npm install -g vercel + working-directory: ResourceHub/website - name: Deploy to Vercel env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} run: vercel --prod --confirm + working-directory: ResourceHub/website