Skip to content

Add smoke-tests for types, build, etc #4558

Add smoke-tests for types, build, etc

Add smoke-tests for types, build, etc #4558

Workflow file for this run

name: Compat
on:
pull_request:
branches:
- main
- v4-main
env:
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself
concurrency:
group: compat-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
fastboot:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:fastboot
embroider:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:embroider
env:
UV_USE_IO_URING: 0
vite:
timeout-minutes: 7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
run: pnpm test:vite
floating-dependencies:
timeout-minutes: 9
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies w/o lockfile
run: pnpm install --no-lockfile
- name: Basic Tests
run: pnpm test
node-version-test:
name: Use Node.js ${{ matrix.node-version }}
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Basic Tests
run: pnpm test
packageManagers:
name: Smoke test w/ ${{ matrix.packageManager }} & ${{ matrix.kind }}
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
packageManager: [npm, yarn, pnpm]
kind:
- false # Test vanilla pnpm -r
- alpha # requires unstable-preview-types folder for each package
# These aren't ready yet, they require additional folders
# - beta # requires preview-types folder for each package
# - stable # requires types folder for each package
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: ./.github/actions/setup
with:
restore-broccoli-cache: true
install: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Run a basic smoke test with ${{ matrix.packageManager }} and ${{ matrix.kind }} tagging"
run: |
bun ./scripts/test-package-manager.mjs \
"${{ matrix.packageManager }}" "${{ matrix.kind}}"