Skip to content

Next Build Deploy Test Push #86

Next Build Deploy Test Push

Next Build Deploy Test Push #86

Workflow file for this run

name: Next Build Deploy Test Push
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
GH_TOKEN: ${{secrets.PULL_REQ}}
on:
schedule:
- cron: "0 0 * * 0" # Runs every Sunday at midnight
workflow_dispatch: # Allows manual triggering
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
repository: eelab-dev/EEcircuit
ref: test # Checkout the "next" branch
- name: Update Dependencies
run: npx --yes npm-check-updates -u
- name: Install Dependencies
run: npm install
- name: Update engine to next version
run: npm install eecircuit-engine@next
- name: Build Project with Vite
run: npm run build
- name: Deploy to Vercel
run: npx vercel --token=${{ secrets.VERCEL_TOKEN }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test -g "EEcircuit Next"
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
# auto commit
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto updates after tests