Skip to content

Develop

Develop #146

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: ["**"]
jobs:
validate-branch:
name: Validate Target Branch
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: YOU SHALL NOT PASS
if: github.base_ref == 'main' && github.head_ref != 'develop'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "ERROR: Pull requests to 'main' are not allowed from ${{ github.head_ref }}."
gh pr close ${{ github.event.pull_request.number }} \
--comment "ERROR: Pull requests to 'main' are not allowed. Current source branch: ${{ github.head_ref }}. Please create a PR to 'develop' first, this will become a release candidate when merged into 'main' by a maintainer."
exit 1
- name: PR info
if: always()
run: |
echo "PR validation check completed"
echo "Source: ${{ github.head_ref }}"
echo "Target: ${{ github.base_ref }}"
tests:
name: Tests now - BOOORING
runs-on: ubuntu-latest
needs: validate-branch
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup the best engine ever
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install all dependencies
run: bun install --frozen-lockfile
- name: This will totally fail if you only use AI
run: bun run typecheck
- name: Run tests
run: yarn test
- name: Run stress tests
run: yarn test:rate-limit