Merge pull request #173 from ppaker119/system-theme-detection-support #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Frontend Auto-Merge | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, labeled, unlabeled, ready_for_review] | ||
| pull_request_review: | ||
| types: [submitted, dismissed] | ||
| check_suite: | ||
| types: [completed] | ||
| status: | ||
| permissions: | ||
| contents: read | ||
| pull_requests: write | ||
| jobs: | ||
| ci: | ||
| name: Frontend CI | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| - name: Install Dependencies | ||
| run: npm ci | ||
| - name: Format & Lint Check | ||
| run: npm run lint | ||
| - name: Build Next.js Application | ||
| run: npm run build | ||
| env: | ||
| NEXT_PUBLIC_API_URL: "http://localhost:3000" | ||
| NEXT_PUBLIC_STELLAR_NETWORK: "testnet" | ||
| NEXT_PUBLIC_STELLAR_HORIZON_URL: "https://horizon-testnet.stellar.org" | ||
| auto-merge: | ||
| name: Auto-Merge | ||
| needs: ci | ||
| if: github.event_name == 'pull_request' && github.event.pull_request.mergeable != false | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Enable Auto-Merge | ||
| uses: peter-evans/enable-pull-request-automerge@v3 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| pull-request-number: ${{ github.event.pull_request.number || github.event.number }} | ||
| merge-method: squash | ||