Skip to content

Commit

Permalink
Update pr-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
r7projects-shayan authored Jun 2, 2024
1 parent 500a06c commit 3453772
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3453772

Please sign in to comment.