Skip to content

Set up CI/CD pipeline with GitHub Actions #20

@gboigwe

Description

@gboigwe

Description

Configure GitHub Actions for automated testing, building, and deployment.

Workflows to Create

1. Test Workflow

# .github/workflows/test.yml
name: Test
on: [push, pull_request]
jobs:
  test-contracts:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Run Clarinet tests
        run: |
          cd contracts
          npm test
  
  test-frontend:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Run frontend tests
        run: |
          cd frontend
          npm install
          npm test

2. Deploy Workflow

# .github/workflows/deploy.yml
name: Deploy
on:
  push:
    branches: [main]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Deploy to Vercel
        uses: amondnet/vercel-action@v20
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }}

Acceptance Criteria

  • Test workflow configured
  • Deploy workflow configured
  • Secrets configured
  • Build status badge in README
  • All checks passing

Dependencies

Estimated Complexity

Low

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions