Skip to content

Commit

Permalink
feat: add main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
loke-dev committed Jul 10, 2023
1 parent 3582b3f commit ea5fcce
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests and Deploy

on:
push:
branches:
- master

jobs:
test-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Run vitest
run: npm run test

- name: Run Playwright tests
run: npm run test:playwright

# - name: Deploy to Vercel
# if: ${{ success() }}
# run: |
# npx vercel --prod

0 comments on commit ea5fcce

Please sign in to comment.