name: Randomized Tests

concurrency: randomized-tests

on:
  push:
    branches:
      - randomized-tests-runner
  # schedule:
  #    - cron: '0 * * * *'

env:
  CARGO_TERM_COLOR: always
  CARGO_INCREMENTAL: 0
  RUST_BACKTRACE: 1
  ZED_SERVER_URL: https://zed.dev

jobs:
  tests:
    name: Run randomized tests
    runs-on:
      - buildjet-16vcpu-ubuntu-2204
    steps:
      - name: Install Node
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
        with:
          node-version: "18"

      - name: Checkout repo
        uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
        with:
          clean: false

      - name: Run randomized tests
        run: script/randomized-test-ci
