Skip to content

ci: split examples tests #1

ci: split examples tests

ci: split examples tests #1

name: Examples tests
on:
push:
branches: [main]
paths:
- examples/basic/**
- examples/turborepo-tests/example-basic-*/**
- examples/turborepo-tests/helpers/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
basic-example:
name: "basic"
timeout-minutes: 40
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Disable corepack. actions/setup-node invokes other package managers and
# that causes corepack to throw an error, so we disable it first.
- name: Disable corepack
shell: bash
run: corepack disable
- name: Setup Turborepo Environment
uses: ./.github/actions/setup-turborepo-environment
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
node-version: "22"
- name: Install Global Turbo
uses: ./.github/actions/install-global-turbo
- name: Check examples
shell: bash
run: turbo run test --filter="@turborepo-examples-tests/basic-*" --continue --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} --env-mode=strict